summaryrefslogtreecommitdiffstats
path: root/src/object/sp-spiral.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-10-01 01:10:05 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-10-01 01:10:05 +0000
commit89b763d897e805a577f81dc0dccab4b75eb253cf (patch)
tree88cf5fee43de1ac9647134cea9528a271410bb9f /src/object/sp-spiral.cpp
parentImprove calls to document_units (diff)
downloadinkscape-89b763d897e805a577f81dc0dccab4b75eb253cf.tar.gz
inkscape-89b763d897e805a577f81dc0dccab4b75eb253cf.zip
Improvements to transforms in LPE
Diffstat (limited to 'src/object/sp-spiral.cpp')
-rw-r--r--src/object/sp-spiral.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/object/sp-spiral.cpp b/src/object/sp-spiral.cpp
index ba4cc0ce5..a34e7c6d8 100644
--- a/src/object/sp-spiral.cpp
+++ b/src/object/sp-spiral.cpp
@@ -408,16 +408,13 @@ void SPSpiral::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape
*/
Geom::Affine SPSpiral::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;
}
// Only set transform with proportional scaling