From 5bfbeb4a8dc322fcac11ed23fc2665a35c2b957a Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Thu, 26 Apr 2018 11:08:06 +0200 Subject: Fix bug when converting to paths cliped and masked LPE elemets --- src/path-chemistry.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index 7ee811dc9..95b55a829 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -380,19 +380,6 @@ sp_item_list_to_curves(const std::vector &items, std::vector& continue; } - SPPath *path = dynamic_cast(item); - if (path && !path->hasPathEffect()) { - // remove connector attributes - if (item->getAttribute("inkscape:connector-type") != NULL) { - item->removeAttribute("inkscape:connection-start"); - item->removeAttribute("inkscape:connection-end"); - item->removeAttribute("inkscape:connector-type"); - item->removeAttribute("inkscape:connector-curvature"); - did = true; - } - continue; // already a path, and no path effect - } - SPBox3D *box = dynamic_cast(item); if (box) { // convert 3D box to ordinary group of paths; replace the old element in 'selected' with the new group @@ -412,6 +399,19 @@ sp_item_list_to_curves(const std::vector &items, std::vector& lpeitem->removeAllPathEffects(true); } + SPPath *path = dynamic_cast(item); + if (path) { + // remove connector attributes + if (item->getAttribute("inkscape:connector-type") != NULL) { + item->removeAttribute("inkscape:connection-start"); + item->removeAttribute("inkscape:connection-end"); + item->removeAttribute("inkscape:connector-type"); + item->removeAttribute("inkscape:connector-curvature"); + did = true; + } + continue; // already a path, and no path effect + } + if (group) { std::vector item_list = sp_item_group_item_list(group); -- cgit v1.2.3