summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-roughen.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-roughen.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-roughen.cpp')
-rw-r--r--src/live_effects/lpe-roughen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/live_effects/lpe-roughen.cpp b/src/live_effects/lpe-roughen.cpp
index b9d575e06..ffd5433bf 100644
--- a/src/live_effects/lpe-roughen.cpp
+++ b/src/live_effects/lpe-roughen.cpp
@@ -71,11 +71,14 @@ LPERoughen::LPERoughen(LivePathEffectObject *lpeobject)
LPERoughen::~LPERoughen() {}
-void LPERoughen::doBeforeEffect(SPLPEItem const */*lpeitem*/)
+void LPERoughen::doBeforeEffect(SPLPEItem const *lpeitem)
{
displaceX.resetRandomizer();
displaceY.resetRandomizer();
srand(1);
+ SPLPEItem * item = const_cast<SPLPEItem*>(lpeitem);
+ item->apply_to_clippath(item);
+ item->apply_to_mask(item);
}
Gtk::Widget *LPERoughen::newWidget()