summaryrefslogtreecommitdiffstats
path: root/src/ui/interface.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2015-11-16 22:03:08 +0000
committerKris De Gussem <Kris.De.Gussem@hotmail.com>2015-11-16 22:03:08 +0000
commit71048dcd8efdf44f04dd7052081c564030bc042f (patch)
tree1fd68a444e186bf66e824cf487d98e525e1bb0bb /src/ui/interface.cpp
parentstatic code analysis (diff)
downloadinkscape-71048dcd8efdf44f04dd7052081c564030bc042f.tar.gz
inkscape-71048dcd8efdf44f04dd7052081c564030bc042f.zip
null pointer dereference fix
(bzr r14474.1.1)
Diffstat (limited to 'src/ui/interface.cpp')
-rw-r--r--src/ui/interface.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 9a4e1d773..0f719b40f 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -846,13 +846,11 @@ static void sp_ui_build_dyn_menus(Inkscape::XML::Node *menus, GtkWidget *menu, I
#endif
}
} else if (menu_pntr->attribute("check") != NULL) {
- SPAction *action = NULL;
if (verb->get_code() != SP_VERB_NONE) {
- action = verb->get_action(Inkscape::ActionContext(view));
- }
- sp_ui_menu_append_check_item_from_verb(GTK_MENU(menu), view, action->name, action->tip, NULL,
+ SPAction *action = verb->get_action(Inkscape::ActionContext(view));
+ sp_ui_menu_append_check_item_from_verb(GTK_MENU(menu), view, action->name, action->tip, NULL,
checkitem_toggled, checkitem_update, verb);
-
+ }
} else {
sp_ui_menu_append_item_from_verb(GTK_MENU(menu), verb, view);
group = NULL;