diff options
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 89d41be76..2b0379cd4 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -217,6 +217,11 @@ sp_lpe_item_set(SPObject *object, unsigned int key, gchar const *value) if (path_effect_ref && path_effect_ref->lpeobject && path_effect_ref->lpeobject->lpe) { lpeitem->path_effect_list->push_back(path_effect_ref); + } else { + // something has gone wrong in finding the right patheffect. For example when the specified LPE name does not exist. + path_effect_ref->unlink(); + delete path_effect_ref; + path_effect_ref = NULL; } } } |
