From: Michael Wybrow Date: Fri, 13 Aug 2010 08:39:11 +0000 (+1000) Subject: Fixes bug #590047: assertion crash in libavoid when marking shapes as not X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c354f84869aac614a9478832937106573adda35b;p=inkscape.git Fixes bug #590047: assertion crash in libavoid when marking shapes as not being avoided by the connector context. --- diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp index 88c84a84c..a918f8745 100644 --- a/src/conn-avoid-ref.cpp +++ b/src/conn-avoid-ref.cpp @@ -63,8 +63,8 @@ SPAvoidRef::~SPAvoidRef() const bool routerInstanceExists = (item->document->router != NULL); if (shapeRef && routerInstanceExists) { - Router *router = shapeRef->router(); - router->removeShape(shapeRef); + // Deleting the shapeRef will remove it completely from + // an existing Router instance. delete shapeRef; } shapeRef = NULL; @@ -329,7 +329,8 @@ void SPAvoidRef::handleSettingChange(void) { g_assert(shapeRef); - router->removeShape(shapeRef); + // Deleting the shapeRef will remove it completely from + // an existing Router instance. delete shapeRef; shapeRef = NULL; }