From 0aba95762aa449668b044a894536ecb0a92b0316 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sun, 30 Sep 2018 18:39:55 +0200 Subject: Fix for bug:#1299461; Some LPE fails on apply to original, but cloned elements --- src/live_effects/parameter/path.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/live_effects/parameter/path.cpp') 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); } -- cgit v1.2.3