From ad12fe58edef2a31780e89c65ea0675253862711 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 26 Mar 2009 23:02:22 +0000 Subject: do not transform, display, reverse, node-edit, or remove LPE if LPE stack is disabled by an invalid or unsupported effect in it (bzr r7567) --- src/selection-chemistry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index f393f73f9..891e958a5 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -970,7 +970,8 @@ void sp_selection_paste_livepatheffect(SPDesktop *desktop) void sp_selection_remove_livepatheffect_impl(SPItem *item) { - if ( item && SP_IS_LPE_ITEM(item) ) { + if ( item && SP_IS_LPE_ITEM(item) && + sp_lpe_item_has_path_effect(SP_LPE_ITEM(item))) { sp_lpe_item_remove_all_path_effects(SP_LPE_ITEM(item), false); } } -- cgit v1.2.3