summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/node-tool.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-02-20 10:22:33 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-02-20 10:22:33 +0000
commitabb44e3965894e8783efb782ffdb79e7232a2a0b (patch)
tree2d1f48e4e79606defaba3bd3888492f10920c886 /src/ui/tools/node-tool.cpp
parentGive more descriptive names to document file related variables and functions. (diff)
downloadinkscape-abb44e3965894e8783efb782ffdb79e7232a2a0b.tar.gz
inkscape-abb44e3965894e8783efb782ffdb79e7232a2a0b.zip
Prevent crashes in node tool
Diffstat (limited to '')
-rw-r--r--src/ui/tools/node-tool.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp
index 52632098f..a14114cb7 100644
--- a/src/ui/tools/node-tool.cpp
+++ b/src/ui/tools/node-tool.cpp
@@ -221,8 +221,9 @@ void NodeTool::setup() {
sigc::mem_fun(this, &NodeTool::handleControlUiStyleChange)
);
this->helperpath_tmpitem = nullptr;
- this->_selected_nodes = new Inkscape::UI::ControlPointSelection(this->desktop, this->_transform_handle_group);
-
+ if (this->_transform_handle_group) {
+ this->_selected_nodes = new Inkscape::UI::ControlPointSelection(this->desktop, this->_transform_handle_group);
+ }
data.node_data.selection = this->_selected_nodes;
this->_multipath = new Inkscape::UI::MultiPathManipulator(data, this->_selection_changed_connection);