From fdc52bf32eb849efad7cb4b7d3ed13c7b1e100a6 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 8 Apr 2012 23:03:31 +0200 Subject: clone lpe: preserve transformations on paths with clone_original lpe. This enables moving such paths. (bzr r11185) --- src/sp-path.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sp-path.cpp') 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); } -- cgit v1.2.3