summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-offset.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-09-29 02:01:20 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-09-29 02:01:20 +0000
commitfaec2fcff4372e4ee4ce4e967b95747e3c52c241 (patch)
tree9276c803b5ab180f37c61ec491d772d0ecca102e /src/live_effects/lpe-offset.cpp
parentThis push add a partial solution to scale powerstroke shapes without distorsion (diff)
downloadinkscape-faec2fcff4372e4ee4ce4e967b95747e3c52c241.tar.gz
inkscape-faec2fcff4372e4ee4ce4e967b95747e3c52c241.zip
this patch fix the problem whith clips and mask update in live effects.
More info in the bug: https://bugs.launchpad.net/inkscape/+bug/1241902 (bzr r13341.1.229)
Diffstat (limited to 'src/live_effects/lpe-offset.cpp')
-rw-r--r--src/live_effects/lpe-offset.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/live_effects/lpe-offset.cpp b/src/live_effects/lpe-offset.cpp
index 192bd17ca..dc91775b7 100644
--- a/src/live_effects/lpe-offset.cpp
+++ b/src/live_effects/lpe-offset.cpp
@@ -55,6 +55,14 @@ static void append_half_circle(Geom::Piecewise<Geom::D2<Geom::SBasis> > &pwd2,
pwd2.continuousConcat(cap_pwd2);
}
+void
+LPEOffset::doBeforeEffect (SPLPEItem const* lpeitem)
+{
+ SPLPEItem * item = const_cast<SPLPEItem*>(lpeitem);
+ item->apply_to_clippath(item);
+ item->apply_to_mask(item);
+}
+
Geom::Piecewise<Geom::D2<Geom::SBasis> >
LPEOffset::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in)
{