diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-04-29 16:12:37 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-04-29 16:12:37 +0000 |
| commit | a6a6de5c06d3183329d73fa39ae0ba02bbd838e1 (patch) | |
| tree | 2df07d7bfcccfc5a746a0613e30cdeb9a46ac3e1 /src/sp-tag-use.cpp | |
| parent | SVG 2 allows 'href' without 'xlink:'. For now just read plain 'href'. (diff) | |
| download | inkscape-a6a6de5c06d3183329d73fa39ae0ba02bbd838e1.tar.gz inkscape-a6a6de5c06d3183329d73fa39ae0ba02bbd838e1.zip | |
Backout last commit as it introduced subtle errors.
(bzr r14864)
Diffstat (limited to 'src/sp-tag-use.cpp')
| -rw-r--r-- | src/sp-tag-use.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sp-tag-use.cpp b/src/sp-tag-use.cpp index b891c8fa0..935f7429e 100644 --- a/src/sp-tag-use.cpp +++ b/src/sp-tag-use.cpp @@ -55,7 +55,6 @@ SPTagUse::build(SPDocument *document, Inkscape::XML::Node *repr) { SPObject::build(document, repr); readAttr( "xlink:href" ); - 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, @@ -86,9 +85,7 @@ SPTagUse::set(unsigned key, gchar const *value) { switch (key) { - case SP_ATTR_XLINK_HREF: - case SP_ATTR_HREF: - { + case SP_ATTR_XLINK_HREF: { if ( value && href && ( strcmp(value, href) == 0 ) ) { /* No change, do nothing. */ } else { |
