From beabe174dbef5608a3628cd152af8b1dc2cb43f7 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 9 Dec 2020 22:02:56 +0100 Subject: [PATCH] Block LPE processing when the LPE is on clipboard We disable LPE operations when the LPE is on clipboard doc. Fixes Inkscape#623 --- src/object/sp-lpe-item.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/object/sp-lpe-item.cpp b/src/object/sp-lpe-item.cpp index 38d1c68ac7..a1fb32cfdc 100755 --- a/src/object/sp-lpe-item.cpp +++ b/src/object/sp-lpe-item.cpp @@ -1387,6 +1387,12 @@ void sp_lpe_item_enable_path_effects(SPLPEItem *lpeitem, bool enable) // Are the path effects enabled on this item ? bool SPLPEItem::pathEffectsEnabled() const { + // we supress on cliboard LPE calculations + Inkscape::XML::Node *root = this->document->getReprRoot(); + Inkscape::XML::Node *clipnode = sp_repr_lookup_name(root, "inkscape:clipboard", 1); + if (clipnode) { + return false; + } return path_effects_enabled > 0; } -- GitLab