summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-12 08:19:08 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-12 08:19:08 +0000
commitc9a989288ac802c9f7ca65f387827a3c2e991741 (patch)
tree603d9ca781e5379f27c45c96da46bb7a1415e240 /src/live_effects/effect.cpp
parentAllow changing document scale (via changing viewBox). Start of GUI. (diff)
downloadinkscape-c9a989288ac802c9f7ca65f387827a3c2e991741.tar.gz
inkscape-c9a989288ac802c9f7ca65f387827a3c2e991741.zip
Point parameter refactor, Fixes a bug in Lattice2 whith lines.
(bzr r13995)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index bddbd315a..1da364580 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -465,9 +465,11 @@ void Effect::doBeforeEffect_impl(SPLPEItem const* lpeitem)
sp_lpe_item = const_cast<SPLPEItem *>(lpeitem);
defaultUnit = sp_lpe_item->document->getDisplayUnit()->abbr;
//printf("(SPLPEITEM*) %p\n", sp_lpe_item);
- 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){
+ sp_curve = shape->getCurve();
+ pathvector_before_effect = sp_curve->get_pathvector();
+ }
doBeforeEffect(lpeitem);
}