Commit d5f097f3 authored by Nathan Lee's avatar Nathan Lee Committed by Marc Jeanmougin

Update objects dialog when sublayer deleted

Avoids crash on selecting removed object.
See gitlab.com/inkscape/inbox/issues/664
parent 515569e7
Pipeline #73339553 failed with stages
in 8 minutes and 24 seconds
......@@ -594,8 +594,6 @@ void SPObject::detach(SPObject *object)
g_return_if_fail(SP_IS_OBJECT(object));
g_return_if_fail(object->parent == this);
object->releaseReferences();
SPObject *prev=NULL;
for ( SPObject *child = this->children ; child && child != object ;
child = child->next )
......@@ -613,6 +611,8 @@ void SPObject::detach(SPObject *object)
this->_last_child = prev;
}
object->releaseReferences();
object->next = NULL;
object->parent = NULL;
......
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