From d3deb9184f7044f930133f37654e52bc24272616 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Sun, 7 May 2017 19:16:47 +0200 Subject: Fix a bug on tapper stroke detected with Ede_123 on IRC (bzr r15673) --- src/live_effects/effect.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 6ab50b1c0..aa8987185 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -492,7 +492,7 @@ Effect::processObjects(LpeAction lpe_action) void Effect::setCurrentShape(SPShape * shape){ if(shape){ sp_shape = shape; - if (!(sp_curve = sp_shape->getCurve())) { + if (!(sp_curve = sp_shape->getCurveBeforeLPE())) { // oops return; } @@ -523,25 +523,16 @@ void Effect::doOnVisibilityToggled(SPLPEItem const* /*lpeitem*/) void Effect::doOnApply_impl(SPLPEItem const* lpeitem) { sp_lpe_item = const_cast(lpeitem); - sp_curve = SP_SHAPE(sp_lpe_item)->getCurve(); - pathvector_before_effect = sp_curve->get_pathvector(); SPShape * shape = dynamic_cast(sp_lpe_item); - if(shape){ - setCurrentShape(shape); - } + setCurrentShape(shape); doOnApply(lpeitem); } void Effect::doBeforeEffect_impl(SPLPEItem const* lpeitem) { sp_lpe_item = const_cast(lpeitem); - //printf("(SPLPEITEM*) %p\n", sp_lpe_item); SPShape * shape = dynamic_cast(sp_lpe_item); - if(shape){ - setCurrentShape(shape); - sp_curve = shape->getCurve(); - pathvector_before_effect = sp_curve->get_pathvector(); - } + setCurrentShape(shape); doBeforeEffect(lpeitem); if (apply_to_clippath_and_mask && SP_IS_GROUP(sp_lpe_item)) { sp_lpe_item->apply_to_clippath(sp_lpe_item); -- cgit v1.2.3