Commit 602f9c66 authored by Jabier Arraiza's avatar Jabier Arraiza Committed by Jabier Arraiza

Fix bug:1634641 crash on delete

Fixed bugs:
  - https://launchpad.net/bugs/1634645

(bzr r15179)
parent d9665d88
......@@ -588,7 +588,7 @@ bool SPLPEItem::hasBrokenPathEffect() const
bool SPLPEItem::hasPathEffect() const
{
if (path_effect_list->empty()) {
if (!path_effect_list || path_effect_list->empty()) {
return false;
}
......
......@@ -485,7 +485,7 @@ void SPObject::_sendDeleteSignalRecursive() {
void SPObject::deleteObject(bool propagate, bool propagate_descendants)
{
sp_object_ref(this, NULL);
if ( SP_IS_LPE_ITEM(this) ) {
if ( SP_IS_LPE_ITEM(this) && SP_LPE_ITEM(this)->hasPathEffect()) {
SP_LPE_ITEM(this)->removeAllPathEffects(false);
}
if (propagate) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment