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-tref.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-tref.cpp')
| -rw-r--r-- | src/sp-tref.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp index 7dd00eba5..ba592058b 100644 --- a/src/sp-tref.cpp +++ b/src/sp-tref.cpp @@ -67,7 +67,6 @@ void SPTRef::build(SPDocument *document, Inkscape::XML::Node *repr) { SPItem::build(document, repr); this->readAttr( "xlink:href" ); - this->readAttr( "href" ); this->readAttr( "x" ); this->readAttr( "y" ); this->readAttr( "dx" ); @@ -95,7 +94,7 @@ void SPTRef::set(unsigned int key, const gchar* value) { if (this->attributes.readSingleAttribute(key, value, style, &viewport)) { // x, y, dx, dy, rotate this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); - } else if (key == SP_ATTR_XLINK_HREF || key == SP_ATTR_HREF ) { // xlink:href + } else if (key == SP_ATTR_XLINK_HREF) { // xlink:href if ( !value ) { // No value g_free(this->href); |
