From 8e8734dc15e614586f9b4963b69671ce16d5c137 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 30 May 2008 20:36:13 +0000 Subject: LPE STACKING! (many thanks to the french students who made this.) (bzr r5766) --- src/live_effects/lpe-bendpath.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/live_effects/lpe-bendpath.cpp') diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp index 6b9fbbb97..282ea8270 100644 --- a/src/live_effects/lpe-bendpath.cpp +++ b/src/live_effects/lpe-bendpath.cpp @@ -68,8 +68,6 @@ LPEBendPath::LPEBendPath(LivePathEffectObject *lpeobject) : prop_scale.param_set_increments(0.01, 0.10); concatenate_before_pwd2 = true; - - groupSpecialBehavior = false; } LPEBendPath::~LPEBendPath() @@ -80,12 +78,8 @@ LPEBendPath::~LPEBendPath() void LPEBendPath::doBeforeEffect (SPLPEItem *lpeitem) { - if(SP_IS_GROUP(lpeitem)) - { - groupSpecialBehavior = true; - - original_bbox(lpeitem); - } + // get the item bounding box + original_bbox(lpeitem); } Geom::Piecewise > @@ -105,11 +99,6 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise > const & pwd Piecewise y = vertical_pattern.get_value() ? Piecewise(patternd2[0]) : Piecewise(patternd2[1]); //We use the group bounding box size or the path bbox size to translate well x and y - if(groupSpecialBehavior == false) - { - boundingbox_X = bounds_exact(x); - boundingbox_Y = bounds_exact(y); - } x-= vertical_pattern.get_value() ? boundingbox_Y.min() : boundingbox_X.min(); y-= vertical_pattern.get_value() ? boundingbox_X.middle() : boundingbox_Y.middle(); -- cgit v1.2.3