diff options
| author | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-07-22 15:22:19 +0000 |
|---|---|---|
| committer | Adrian Boguszewski <adrbogus1@student.pg.gda.pl> | 2016-07-22 15:22:19 +0000 |
| commit | a83543fbf553fb141ec68386ecc77e2bffe36b10 (patch) | |
| tree | 46b7739702346abb532dc621a12266011bda5a6b /src/ui/tools/tool-base.cpp | |
| parent | Disambiguate sigc::ptr_fun to fix C++14 compilation. (diff) | |
| download | inkscape-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/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 2 |
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); |
