diff options
| author | Jabiertxof <jtx@jtx> | 2017-01-01 02:21:07 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-01-01 02:21:07 +0000 |
| commit | 088070b65c83f9a6a7d1d268e8a794776cc648a8 (patch) | |
| tree | 8bef26c0083f57832f86191749fb49303f23a0dd /src/sp-path.cpp | |
| parent | Update to trunk (diff) | |
| download | inkscape-088070b65c83f9a6a7d1d268e8a794776cc648a8.tar.gz inkscape-088070b65c83f9a6a7d1d268e8a794776cc648a8.zip | |
Fixing transforms,clips...
(bzr r15356.1.8)
Diffstat (limited to 'src/sp-path.cpp')
| -rw-r--r-- | src/sp-path.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 0a2ce4c09..6c69f3463 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -289,10 +289,23 @@ Geom::Affine SPPath::set_transform(Geom::Affine const &transform) { if (!_curve) { // 0 nodes, nothing to transform return Geom::identity(); } + // Adjust stroke + this->adjust_stroke(transform.descrim()); + + // Adjust pattern fill + this->adjust_pattern(transform); + + // Adjust gradient fill + this->adjust_gradient(transform); + + // Adjust LPE + this->adjust_livepatheffect(transform); // Transform the original-d path if this is a valid LPE this, other else the (ordinary) path if (_curve_before_lpe && hasPathEffectRecursive()) { - if (this->hasPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL) || this->hasPathEffectOfType(Inkscape::LivePathEffect::BEND_PATH)) { + if (this->hasPathEffectOfType(Inkscape::LivePathEffect::CLONE_ORIGINAL) || + this->hasPathEffectOfType(Inkscape::LivePathEffect::BEND_PATH)) + { // if path has the CLONE_ORIGINAL 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 return transform; @@ -303,18 +316,6 @@ Geom::Affine SPPath::set_transform(Geom::Affine const &transform) { _curve->transform(transform); } - // Adjust stroke - this->adjust_stroke(transform.descrim()); - - // Adjust pattern fill - this->adjust_pattern(transform); - - // Adjust gradient fill - this->adjust_gradient(transform); - - // Adjust LPE - this->adjust_livepatheffect(transform); - this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG); // nothing remains - we've written all of the transform, so return identity |
