summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-08 21:03:31 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-08 21:03:31 +0000
commitfdc52bf32eb849efad7cb4b7d3ed13c7b1e100a6 (patch)
tree246c0318a73d805ad586ade6b8da70b2c214a861 /src
parentpdf import. temporary workaround to prevent GfxRadialShading from getting cor... (diff)
downloadinkscape-fdc52bf32eb849efad7cb4b7d3ed13c7b1e100a6.tar.gz
inkscape-fdc52bf32eb849efad7cb4b7d3ed13c7b1e100a6.zip
clone lpe: preserve transformations on paths with clone_original lpe. This enables moving such paths.
(bzr r11185)
Diffstat (limited to 'src')
-rw-r--r--src/sp-path.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp
index 3ac4666e2..107ceac16 100644
--- a/src/sp-path.cpp
+++ b/src/sp-path.cpp
@@ -377,7 +377,12 @@ sp_path_set_transform(SPItem *item, Geom::Affine const &xform)
// Transform the original-d path if this is a valid LPE item, other else the (ordinary) path
if (path->_curve_before_lpe && sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(item))) {
- path->_curve_before_lpe->transform(xform);
+ if (sp_lpe_item_has_path_effect_of_type(SP_LPE_ITEM(item), Inkscape::LivePathEffect::CLONE_ORIGINAL)) {
+ // if path has the CLONE_ORIGINAL LPE applied, don't write the transform to the pathdata, but write it 'unoptimized'
+ return xform;
+ } else {
+ path->_curve_before_lpe->transform(xform);
+ }
} else {
path->_curve->transform(xform);
}