summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-09 16:04:45 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-09 18:23:21 +0000
commitda57232ba482a93d4ed3dbbc9b7e74e71362ae38 (patch)
tree01401aaa022f739fcaac5ad2aa6e73930178b0fd /src/ui
parentupdate pofiles (diff)
downloadinkscape-da57232ba482a93d4ed3dbbc9b7e74e71362ae38.tar.gz
inkscape-da57232ba482a93d4ed3dbbc9b7e74e71362ae38.zip
Actualizarsrc/ui/tools/node-tool.h, src/ui/tools/node-tool.cpp archivos
Diffstat (limited to 'src/ui')
-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;