diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-04-26 09:08:06 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx.markerlab.es> | 2018-04-26 09:28:58 +0000 |
| commit | 5bfbeb4a8dc322fcac11ed23fc2665a35c2b957a (patch) | |
| tree | e00191e553fa1c10319dd37490df0c462fb050b0 /src/path-chemistry.cpp | |
| parent | Add start of 'font-variations' widget. (diff) | |
| download | inkscape-5bfbeb4a8dc322fcac11ed23fc2665a35c2b957a.tar.gz inkscape-5bfbeb4a8dc322fcac11ed23fc2665a35c2b957a.zip | |
Fix bug when converting to paths cliped and masked LPE elemets
Diffstat (limited to '')
| -rw-r--r-- | src/path-chemistry.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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<SPItem*> &items, std::vector<SPItem*>& continue; } - SPPath *path = dynamic_cast<SPPath *>(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<SPBox3D *>(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<SPItem*> &items, std::vector<SPItem*>& lpeitem->removeAllPathEffects(true); } + SPPath *path = dynamic_cast<SPPath *>(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<SPItem*> item_list = sp_item_group_item_list(group); |
