diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-lpe-item.cpp | 4 |
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; |
