summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/path.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-09-30 16:39:55 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-09-30 16:39:55 +0000
commit0aba95762aa449668b044a894536ecb0a92b0316 (patch)
treeb43c7a6746cbb969901610b60c3f09d469a6fcbb /src/live_effects/parameter/path.cpp
parentfix 1787601 star stroke width scaled by 3.78 (diff)
downloadinkscape-0aba95762aa449668b044a894536ecb0a92b0316.tar.gz
inkscape-0aba95762aa449668b044a894536ecb0a92b0316.zip
Fix for bug:#1299461; Some LPE fails on apply to original, but cloned elements
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
-rw-r--r--src/live_effects/parameter/path.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp
index af553a029..ce06627c9 100644
--- a/src/live_effects/parameter/path.cpp
+++ b/src/live_effects/parameter/path.cpp
@@ -99,6 +99,14 @@ PathParam::~PathParam()
// }
// }
// }
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ if (desktop) {
+ // TODO remove the tools_switch atrocity.
+ if (tools_isactive(desktop, TOOLS_NODES)) {
+ tools_switch(desktop, TOOLS_SELECT);
+ tools_switch(desktop, TOOLS_NODES);
+ }
+ }
g_free(defvalue);
}