Code

override transform_multiply for patternalongpath to disable transform forwarding...
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 12 Apr 2009 15:28:53 +0000 (15:28 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 12 Apr 2009 15:28:53 +0000 (15:28 +0000)
src/live_effects/lpe-patternalongpath.cpp
src/live_effects/lpe-patternalongpath.h

index 28f0d1dfc919d3d4f8f702398eda8e3d2a4e53c7..29c5517bfe4485814fc4a2fd7704e648035a2fa4 100644 (file)
@@ -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 */
 
index ea89097b30ffad8698c23a0dffa9dddcc9b720f3..1c02f2c08c62951d49127524c5e6ffd7390107dc 100644 (file)
@@ -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;