summaryrefslogtreecommitdiffstats
path: root/src/object/sp-spiral.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-10-01 13:53:24 +0000
committerMartin Owens <doctormo@gmail.com>2018-10-01 13:53:24 +0000
commit2dca0aac3ca509cf2704e5730195376a009adb70 (patch)
tree8326fcb65ab2ca570be2b6c6f6cbacb419d18b17 /src/object/sp-spiral.cpp
parentFix the object-to-path bug by adding back the SPIBase check. (diff)
parentFix for bug #263620 comment 5, (diff)
downloadinkscape-2dca0aac3ca509cf2704e5730195376a009adb70.tar.gz
inkscape-2dca0aac3ca509cf2704e5730195376a009adb70.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/object/sp-spiral.cpp')
-rw-r--r--src/object/sp-spiral.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/object/sp-spiral.cpp b/src/object/sp-spiral.cpp
index a34e7c6d8..83455dbe4 100644
--- a/src/object/sp-spiral.cpp
+++ b/src/object/sp-spiral.cpp
@@ -408,21 +408,14 @@ 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) )
+ if (hasPathEffect() && pathEffectsEnabled())
{
- // 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
+ // Inverse it to compensate
this->adjust_livepatheffect(xform.inverse());
return xform;
}
// Only set transform with proportional scaling
if (!xform.withoutTranslation().isUniformScale()) {
- // Adjust livepatheffect
- if (hasPathEffect() && pathEffectsEnabled()) {
- this->adjust_livepatheffect(xform);
- }
return xform;
}
@@ -463,9 +456,6 @@ Geom::Affine SPSpiral::set_transform(Geom::Affine const &xform)
// Adjust gradient fill
this->adjust_gradient(xform * ret.inverse());
- // Adjust livepatheffect
- this->adjust_livepatheffect(xform);
-
return ret;
}