From 89b763d897e805a577f81dc0dccab4b75eb253cf Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 1 Oct 2018 03:10:05 +0200 Subject: Improvements to transforms in LPE --- src/object/sp-ellipse.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/object/sp-ellipse.cpp') diff --git a/src/object/sp-ellipse.cpp b/src/object/sp-ellipse.cpp index a3ac66838..97bad1fdf 100644 --- a/src/object/sp-ellipse.cpp +++ b/src/object/sp-ellipse.cpp @@ -502,16 +502,13 @@ void SPGenericEllipse::set_shape() Geom::Affine SPGenericEllipse::set_transform(Geom::Affine const &xform) { + // TODO: try to remove CLONE_ORIGINAL from here if (hasPathEffect() && pathEffectsEnabled() && - (this->hasPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL) || - this->hasPathEffectOfType(Inkscape::LivePathEffect::BEND_PATH) || - this->hasPathEffectOfType(Inkscape::LivePathEffect::POWERCLIP) || - this->hasPathEffectOfType(Inkscape::LivePathEffect::FILL_BETWEEN_MANY) || - this->hasPathEffectOfType(Inkscape::LivePathEffect::FILL_BETWEEN_STROKES) ) ) + this->hasPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL )) { // if path has this LPE applied, don't write the transform to the pathdata, but write it 'unoptimized' // also if the effect is type BEND PATH to fix bug #179842 - this->adjust_livepatheffect(xform); + this->adjust_livepatheffect(xform.inverse()); return xform; } /* Calculate ellipse start in parent coords. */ -- cgit v1.2.3