summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-04-29 16:12:37 +0000
committertavmjong-free <tavmjong@free.fr>2016-04-29 16:12:37 +0000
commita6a6de5c06d3183329d73fa39ae0ba02bbd838e1 (patch)
tree2df07d7bfcccfc5a746a0613e30cdeb9a46ac3e1 /src/sp-use.cpp
parentSVG 2 allows 'href' without 'xlink:'. For now just read plain 'href'. (diff)
downloadinkscape-a6a6de5c06d3183329d73fa39ae0ba02bbd838e1.tar.gz
inkscape-a6a6de5c06d3183329d73fa39ae0ba02bbd838e1.zip
Backout last commit as it introduced subtle errors.
(bzr r14864)
Diffstat (limited to 'src/sp-use.cpp')
-rw-r--r--src/sp-use.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index bf91d52b7..c8a0830c1 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -82,7 +82,6 @@ void SPUse::build(SPDocument *document, Inkscape::XML::Node *repr) {
this->readAttr( "width" );
this->readAttr( "height" );
this->readAttr( "xlink:href" );
- this->readAttr( "href" );
// We don't need to create child here:
// reading xlink:href will attach ref, and that will cause the changed signal to be emitted,
@@ -129,9 +128,7 @@ void SPUse::set(unsigned int key, const gchar* value) {
this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
break;
- case SP_ATTR_XLINK_HREF:
- case SP_ATTR_HREF:
- {
+ case SP_ATTR_XLINK_HREF: {
if ( value && this->href && ( strcmp(value, this->href) == 0 ) ) {
/* No change, do nothing. */
} else {