summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2009-04-12 15:28:53 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2009-04-12 15:28:53 +0000
commit54306527e3922e6eb618a325b9b65838cc8368d5 (patch)
treead96a83f4d69b30fa71c9944e2ec1951effa0e95 /src
parentAdding two Color filters, Black light and Ghosten (diff)
downloadinkscape-54306527e3922e6eb618a325b9b65838cc8368d5.tar.gz
inkscape-54306527e3922e6eb618a325b9b65838cc8368d5.zip
override transform_multiply for patternalongpath to disable transform forwarding to its parameters.
(bzr r7691)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-patternalongpath.cpp11
-rw-r--r--src/live_effects/lpe-patternalongpath.h2
2 files changed, 13 insertions, 0 deletions
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<Geom::D2<Geom::SBasis> > 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<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
+ virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
+
PathParam pattern;
private:
EnumParam<PAPCopyType> copytype;