summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/tools/node-tool.cpp6
-rw-r--r--src/ui/tools/node-tool.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp
index 937c1a657..7038572c8 100644
--- a/src/ui/tools/node-tool.cpp
+++ b/src/ui/tools/node-tool.cpp
@@ -284,6 +284,12 @@ void NodeTool::setup() {
sp_update_helperpath();
}
+// Clean selection on tool change
+void NodeTool::finish() {
+ this->_selected_nodes->clear();
+ ToolBase::finish();
+}
+
// show helper paths of the applied LPE, if any
void sp_update_helperpath() {
SPDesktop * desktop = SP_ACTIVE_DESKTOP;
diff --git a/src/ui/tools/node-tool.h b/src/ui/tools/node-tool.h
index 523ed5da2..7f6e2da7f 100644
--- a/src/ui/tools/node-tool.h
+++ b/src/ui/tools/node-tool.h
@@ -58,6 +58,7 @@ public:
static const std::string prefsPath;
void setup() override;
+ void finish() override;
void set(const Inkscape::Preferences::Entry& val) override;
bool root_handler(GdkEvent* event) override;