diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-20 10:22:33 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-20 10:22:33 +0000 |
| commit | abb44e3965894e8783efb782ffdb79e7232a2a0b (patch) | |
| tree | 2d1f48e4e79606defaba3bd3888492f10920c886 /src/ui/tools/node-tool.cpp | |
| parent | Give more descriptive names to document file related variables and functions. (diff) | |
| download | inkscape-abb44e3965894e8783efb782ffdb79e7232a2a0b.tar.gz inkscape-abb44e3965894e8783efb782ffdb79e7232a2a0b.zip | |
Prevent crashes in node tool
Diffstat (limited to 'src/ui/tools/node-tool.cpp')
| -rw-r--r-- | src/ui/tools/node-tool.cpp | 5 |
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); |
