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
commit63925693eb0141d1f589f86f967536918e7b17f6 (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-63925693eb0141d1f589f86f967536918e7b17f6.tar.gz
inkscape-63925693eb0141d1f589f86f967536918e7b17f6.zip
Fix bug on crash if undefined LPE load
(bzr r15703.1.9)
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;