summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-05-07 17:16:47 +0000
committerJabiertxof <jtx@jtx>2017-05-07 17:16:47 +0000
commitd3deb9184f7044f930133f37654e52bc24272616 (patch)
tree2f4adc7376604af3b805846c304072c0931c4c75 /src/live_effects/effect.cpp
parentDisable LPE from icon files for faster load. Also added a desc in the LPE ico... (diff)
downloadinkscape-d3deb9184f7044f930133f37654e52bc24272616.tar.gz
inkscape-d3deb9184f7044f930133f37654e52bc24272616.zip
Fix a bug on tapper stroke detected with Ede_123 on IRC
(bzr r15673)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp15
1 files changed, 3 insertions, 12 deletions
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<SPLPEItem *>(lpeitem);
- sp_curve = SP_SHAPE(sp_lpe_item)->getCurve();
- pathvector_before_effect = sp_curve->get_pathvector();
SPShape * shape = dynamic_cast<SPShape *>(sp_lpe_item);
- if(shape){
- setCurrentShape(shape);
- }
+ setCurrentShape(shape);
doOnApply(lpeitem);
}
void Effect::doBeforeEffect_impl(SPLPEItem const* lpeitem)
{
sp_lpe_item = const_cast<SPLPEItem *>(lpeitem);
- //printf("(SPLPEITEM*) %p\n", sp_lpe_item);
SPShape * shape = dynamic_cast<SPShape *>(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);