diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-10-01 13:43:39 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-10-01 13:43:39 +0000 |
| commit | 5c3843e6bfa85baf9fc807dc169f571da444fda2 (patch) | |
| tree | 1fc0bc19c7cf711d212f03489348d9488c080e62 /src/object/sp-path.cpp | |
| parent | Improvements to transforms in LPE (diff) | |
| download | inkscape-5c3843e6bfa85baf9fc807dc169f571da444fda2.tar.gz inkscape-5c3843e6bfa85baf9fc807dc169f571da444fda2.zip | |
Fix for bug #263620 comment 5,
Duplicating LPE path more like clone
Diffstat (limited to '')
| -rw-r--r-- | src/object/sp-path.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/object/sp-path.cpp b/src/object/sp-path.cpp index d951d1738..558b3b72e 100644 --- a/src/object/sp-path.cpp +++ b/src/object/sp-path.cpp @@ -326,14 +326,13 @@ Geom::Affine SPPath::set_transform(Geom::Affine const &transform) { if (!_curve) { // 0 nodes, nothing to transform return Geom::identity(); } - // Only set transform with proportional scaling - if (!transform.withoutTranslation().isUniformScale()) { - // Adjust livepatheffect - if (hasPathEffect() && pathEffectsEnabled()) { - this->adjust_livepatheffect(transform.inverse()); - return transform; - } + if (hasPathEffect() && pathEffectsEnabled()) + { + // Inverse it to compensate + this->adjust_livepatheffect(transform.inverse()); + return transform; } + // TODO: try to remove CLONE_ORIGINAL from here // Transform the original-d path if this is a valid LPE this, other else the (ordinary) path if (_curve_before_lpe && hasPathEffectRecursive()) { @@ -358,9 +357,6 @@ Geom::Affine SPPath::set_transform(Geom::Affine const &transform) { // Adjust gradient fill this->adjust_gradient(transform); - // Adjust LPE - this->adjust_livepatheffect(transform); - // nothing remains - we've written all of the transform, so return identity return Geom::identity(); } |
