diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-01-17 21:43:33 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-01-17 21:43:33 +0000 |
| commit | e12f2022c0eddbffbef108fd5fec7bcf78d0f751 (patch) | |
| tree | a54509ca822d5bd73a5ee2fc70064830cd7be44e /src/live_effects/lpe-curvestitch.cpp | |
| parent | fix Matrix::isTranslation (diff) | |
| download | inkscape-e12f2022c0eddbffbef108fd5fec7bcf78d0f751.tar.gz inkscape-e12f2022c0eddbffbef108fd5fec7bcf78d0f751.zip | |
fix transformation of LPECurveStitch when "Scale width relative" is set
(bzr r4543)
Diffstat (limited to 'src/live_effects/lpe-curvestitch.cpp')
| -rw-r--r-- | src/live_effects/lpe-curvestitch.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/live_effects/lpe-curvestitch.cpp b/src/live_effects/lpe-curvestitch.cpp index d3b1f6c12..98814eab0 100644 --- a/src/live_effects/lpe-curvestitch.cpp +++ b/src/live_effects/lpe-curvestitch.cpp @@ -165,6 +165,22 @@ LPECurveStitch::resetDefaults(SPItem * item) strokepath.param_set_and_write_new_value( path.toPwSb() ); } +void +LPECurveStitch::transform_multiply(Geom::Matrix const& postmul, bool set) +{ + // only take translations into account + if (postmul.isTranslation()) { + strokepath.param_transform_multiply(postmul, set); + } else if (!scale_y_rel.get_value()) { + // this basically means that for this transformation, the result should be the same as normal scaling the result path + // don't know how to do this yet. +// Geom::Matrix new_postmul; + //new_postmul.setIdentity(); +// new_postmul.setTranslation(postmul.translation()); +// Effect::transform_multiply(new_postmul, set); + } +} + } //namespace LivePathEffect } /* namespace Inkscape */ |
