diff options
| author | Josh Andler <scislac@gmail.com> | 2010-08-13 14:54:19 +0000 |
|---|---|---|
| committer | Josh Andler <scislac@gmail.com> | 2010-08-13 14:54:19 +0000 |
| commit | d6d599ea50b5b7b5b0a8390db04f7271cebfebc0 (patch) | |
| tree | b6fab38bb17a2f02bb19a047bf8403edac9bcac4 /src/conn-avoid-ref.cpp | |
| parent | Translations. Romanian translation update by Cristian Secară. (diff) | |
| download | inkscape-d6d599ea50b5b7b5b0a8390db04f7271cebfebc0.tar.gz inkscape-d6d599ea50b5b7b5b0a8390db04f7271cebfebc0.zip | |
Revs 9706-9709 from trunk to fix Uniconvertor and 3 connector crashes
(bzr r9606.1.48)
Diffstat (limited to 'src/conn-avoid-ref.cpp')
| -rw-r--r-- | src/conn-avoid-ref.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |
