From 56f1b1b8432b2b5f674d5428488494ebabd7abda Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Wed, 1 May 2019 09:26:05 +0200 Subject: Allow LPE retain elements on convert to paths inside the original defs object --- src/live_effects/effect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 07081286a..d9e3219e0 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -1204,7 +1204,9 @@ Effect::processObjects(LPEAction lpe_action) sp_item_list_to_curves(item_list, item_selected, item_to_select); } elemnode->setAttribute("sodipodi:insensitive", nullptr); - SP_ITEM(elemref)->moveTo(SP_ITEM(sp_lpe_item), false); + if (!SP_IS_DEFS(SP_ITEM(elemref)->parent)) { + SP_ITEM(elemref)->moveTo(SP_ITEM(sp_lpe_item), false); + } } break; -- cgit v1.2.3