summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-perspective-envelope.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-11 08:09:28 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-11 08:09:28 +0000
commit5639c270b1b4c509ada273d79dda1d0a60fea1ed (patch)
tree72ca71866afe37891cc0de2f189cb2d2bf4a004d /src/live_effects/lpe-perspective-envelope.cpp
parentFinal cleanup to point parameter, lattice2 and perspective envelope. Also add... (diff)
downloadinkscape-5639c270b1b4c509ada273d79dda1d0a60fea1ed.tar.gz
inkscape-5639c270b1b4c509ada273d79dda1d0a60fea1ed.zip
Inicialite variables to prevent crashes
(bzr r13990)
Diffstat (limited to 'src/live_effects/lpe-perspective-envelope.cpp')
-rw-r--r--src/live_effects/lpe-perspective-envelope.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/live_effects/lpe-perspective-envelope.cpp b/src/live_effects/lpe-perspective-envelope.cpp
index 77d487c2a..e4e75cf4d 100644
--- a/src/live_effects/lpe-perspective-envelope.cpp
+++ b/src/live_effects/lpe-perspective-envelope.cpp
@@ -334,7 +334,9 @@ LPEPerspectiveEnvelope::resetGrid()
Up_Right_Point.param_set_and_write_default();
Down_Right_Point.param_set_and_write_default();
Down_Left_Point.param_set_and_write_default();
- sp_lpe_item_update_patheffect(sp_lpe_item, false, false);
+ if(sp_lpe_item){
+ sp_lpe_item_update_patheffect(sp_lpe_item, false, false);
+ }
}
void