summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-perspective-envelope.cpp
diff options
context:
space:
mode:
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