From: johanengelen Date: Sun, 12 Apr 2009 15:28:53 +0000 (+0000) Subject: override transform_multiply for patternalongpath to disable transform forwarding... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e3b78b23078cdc4f2f99092d869f350b0e36845;p=inkscape.git override transform_multiply for patternalongpath to disable transform forwarding to its parameters. --- diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index 28f0d1dfc..29c5517bf 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -224,6 +224,17 @@ LPEPatternAlongPath::doEffect_pwd2 (Geom::Piecewise > con } } +void +LPEPatternAlongPath::transform_multiply(Geom::Matrix const& postmul, bool set) +{ + // overriding the Effect class default method, disabling transform forwarding to the parameters. + + // only take translations into account + if (postmul.isTranslation()) { + pattern.param_transform_multiply(postmul, set); + } +} + } // namespace LivePathEffect } /* namespace Inkscape */ diff --git a/src/live_effects/lpe-patternalongpath.h b/src/live_effects/lpe-patternalongpath.h index ea89097b3..1c02f2c08 100644 --- a/src/live_effects/lpe-patternalongpath.h +++ b/src/live_effects/lpe-patternalongpath.h @@ -32,6 +32,8 @@ public: virtual Geom::Piecewise > doEffect_pwd2 (Geom::Piecewise > const & pwd2_in); + virtual void transform_multiply(Geom::Matrix const& postmul, bool set); + PathParam pattern; private: EnumParam copytype;