From 5e3b78b23078cdc4f2f99092d869f350b0e36845 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 12 Apr 2009 15:28:53 +0000 Subject: [PATCH] override transform_multiply for patternalongpath to disable transform forwarding to its parameters. --- src/live_effects/lpe-patternalongpath.cpp | 11 +++++++++++ src/live_effects/lpe-patternalongpath.h | 2 ++ 2 files changed, 13 insertions(+) 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; -- 2.30.2