summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-22 15:22:19 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-22 15:22:19 +0000
commita83543fbf553fb141ec68386ecc77e2bffe36b10 (patch)
tree46b7739702346abb532dc621a12266011bda5a6b /src/ui
parentDisambiguate sigc::ptr_fun to fix C++14 compilation. (diff)
downloadinkscape-a83543fbf553fb141ec68386ecc77e2bffe36b10.tar.gz
inkscape-a83543fbf553fb141ec68386ecc77e2bffe36b10.zip
Fixed null when selection contains more than one item
Fixed bugs: - https://launchpad.net/bugs/1591390 (bzr r15018)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tools/tool-base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp
index 36fe26e76..72ba499de 100644
--- a/src/ui/tools/tool-base.cpp
+++ b/src/ui/tools/tool-base.cpp
@@ -1083,7 +1083,7 @@ void sp_event_root_menu_popup(SPDesktop *desktop, SPItem *item, GdkEvent *event)
/* fixme: This is not what I want but works for now (Lauris) */
if (event->type == GDK_KEY_PRESS) {
- item = desktop->getSelection()->singleItem();
+ item = desktop->getSelection()->itemList().front();
}
ContextMenu* CM = new ContextMenu(desktop, item);