diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2014-01-09 07:09:43 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2014-01-09 07:09:43 +0000 |
| commit | a24ee5c086e294133abe65bd7fab9cd22ad4d5a5 (patch) | |
| tree | b9c22f0b2d3fed6d961ffd0e77e34e4a28646b5c /src/widgets/node-toolbar.cpp | |
| parent | add null check: should fix bug #1163241 (inkscape crashed with SIGSEGV in Ink... (diff) | |
| download | inkscape-a24ee5c086e294133abe65bd7fab9cd22ad4d5a5.tar.gz inkscape-a24ee5c086e294133abe65bd7fab9cd22ad4d5a5.zip | |
null check: fix regression Bug #1258815 (crash after using Edit nodes icon twice (rev >= 12730))
(bzr r12903)
Diffstat (limited to 'src/widgets/node-toolbar.cpp')
| -rw-r--r-- | src/widgets/node-toolbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/node-toolbar.cpp b/src/widgets/node-toolbar.cpp index 6a0968424..a4ea52287 100644 --- a/src/widgets/node-toolbar.cpp +++ b/src/widgets/node-toolbar.cpp @@ -244,7 +244,7 @@ static void sp_node_toolbox_coord_changed(gpointer /*shape_editor*/, GObject *tb Unit const *unit = tracker->getActiveUnit(); NodeTool *nt = get_node_tool(); - if (!nt || nt->_selected_nodes->empty()) { + if (!nt || !(nt->_selected_nodes) ||nt->_selected_nodes->empty()) { // no path selected gtk_action_set_sensitive(xact, FALSE); gtk_action_set_sensitive(yact, FALSE); |
