diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-30 20:36:13 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-30 20:36:13 +0000 |
| commit | 8e8734dc15e614586f9b4963b69671ce16d5c137 (patch) | |
| tree | 036c4af16f6f673757e6e2c580a8ec5c4f3518de /src/live_effects/lpe-bendpath.cpp | |
| parent | remove warnings (diff) | |
| download | inkscape-8e8734dc15e614586f9b4963b69671ce16d5c137.tar.gz inkscape-8e8734dc15e614586f9b4963b69671ce16d5c137.zip | |
LPE STACKING!
(many thanks to the french students who made this.)
(bzr r5766)
Diffstat (limited to 'src/live_effects/lpe-bendpath.cpp')
| -rw-r--r-- | src/live_effects/lpe-bendpath.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
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<Geom::D2<Geom::SBasis> > @@ -105,11 +99,6 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd Piecewise<SBasis> y = vertical_pattern.get_value() ? Piecewise<SBasis>(patternd2[0]) : Piecewise<SBasis>(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(); |
