summaryrefslogtreecommitdiffstats
path: root/src/sp-lpe-item.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-05-28 10:57:28 +0000
committerJabiertxof <jtx@jtx>2017-05-28 10:57:28 +0000
commitd5cd99243b4594bd556e4985a4d5dad44f5326f7 (patch)
tree3c48060d0b37594dbc7dd4e52d13f206cf6a5797 /src/sp-lpe-item.cpp
parentAdd a new value to LPE 'is_load' to know the lpe is just load, no previous v... (diff)
downloadinkscape-d5cd99243b4594bd556e4985a4d5dad44f5326f7.tar.gz
inkscape-d5cd99243b4594bd556e4985a4d5dad44f5326f7.zip
Fix bug on crash if undefined LPE load
(bzr r15712)
Diffstat (limited to 'src/sp-lpe-item.cpp')
-rw-r--r--src/sp-lpe-item.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index 83cf408a4..35e7dfa3e 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -129,7 +129,9 @@ void SPLPEItem::set(unsigned int key, gchar const* value) {
if (!value) {
LivePathEffectObject *lpeobj = (*it)->lpeobject;
Inkscape::LivePathEffect::Effect * lpe = lpeobj->get_lpe();
- lpe->doOnRemove(this);
+ if (lpe) {
+ lpe->doOnRemove(this);
+ }
}
(*it)->unlink();
delete *it;