summaryrefslogtreecommitdiffstats
path: root/src/uri-references.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-12 23:40:29 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-12 23:40:29 +0000
commit103f6024be50ddb0fc0af2f5b05e017de3d59126 (patch)
tree513b6d9a0b15aa8f67f218c4e19afda30aaacf4d /src/uri-references.cpp
parentupdate to trunk (diff)
parentDisconnect before destroying URI (diff)
downloadinkscape-103f6024be50ddb0fc0af2f5b05e017de3d59126.tar.gz
inkscape-103f6024be50ddb0fc0af2f5b05e017de3d59126.zip
update to trunk
(bzr r11950.1.292)
Diffstat (limited to 'src/uri-references.cpp')
-rw-r--r--src/uri-references.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri-references.cpp b/src/uri-references.cpp
index 1da890c56..6db2ed21f 100644
--- a/src/uri-references.cpp
+++ b/src/uri-references.cpp
@@ -115,10 +115,10 @@ void URIReference::attach(const URI &uri) throw(BadURIException)
/* FIXME !!! validate id as an NCName somewhere */
+ _connection.disconnect();
delete _uri;
_uri = new URI(uri);
- _connection.disconnect();
_setObject(document->getObjectById(id));
_connection = document->connectIdChanged(id, sigc::mem_fun(*this, &URIReference::_setObject));