From abb44e3965894e8783efb782ffdb79e7232a2a0b Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Wed, 20 Feb 2019 11:22:33 +0100 Subject: Prevent crashes in node tool --- src/ui/tools/node-tool.cpp | 5 +++-- 1 file 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); -- cgit v1.2.3