summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/connector-tool.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-07-01 17:13:58 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-07-01 17:13:58 +0000
commitf19bf822a0c2a44ff6201e7d24c4646e2e98e4ed (patch)
tree5459b5d6238a6788582d1fe944dedb300f0ee5d9 /src/ui/tools/connector-tool.cpp
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-f19bf822a0c2a44ff6201e7d24c4646e2e98e4ed.tar.gz
inkscape-f19bf822a0c2a44ff6201e7d24c4646e2e98e4ed.zip
Merge branch 'master' of gitlab.com:Frigory33/inkscape
Diffstat (limited to 'src/ui/tools/connector-tool.cpp')
-rw-r--r--src/ui/tools/connector-tool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/tools/connector-tool.cpp b/src/ui/tools/connector-tool.cpp
index 29be4831a..935463942 100644
--- a/src/ui/tools/connector-tool.cpp
+++ b/src/ui/tools/connector-tool.cpp
@@ -941,8 +941,7 @@ void ConnectorTool::_finish() {
this->npoints = 0;
if (this->newConnRef) {
- this->newConnRef->removeFromGraph();
- delete this->newConnRef;
+ this->newConnRef->router()->deleteConnector(this->newConnRef);
this->newConnRef = NULL;
}
}