diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-04-29 12:03:21 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-04-29 12:03:21 +0000 |
| commit | 01ed6d62a228ce560c5ed0976b63609efb7076ac (patch) | |
| tree | 7e56f46331b2b938c411cfe9d63143af3854acaf /src/sp-tref.cpp | |
| parent | Correct enumeration names. (diff) | |
| download | inkscape-01ed6d62a228ce560c5ed0976b63609efb7076ac.tar.gz inkscape-01ed6d62a228ce560c5ed0976b63609efb7076ac.zip | |
SVG 2 allows 'href' without 'xlink:'. For now just read plain 'href'.
(bzr r14863)
Diffstat (limited to 'src/sp-tref.cpp')
| -rw-r--r-- | src/sp-tref.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp index ba592058b..7dd00eba5 100644 --- a/src/sp-tref.cpp +++ b/src/sp-tref.cpp @@ -67,6 +67,7 @@ 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" ); @@ -94,7 +95,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) { // xlink:href + } else if (key == SP_ATTR_XLINK_HREF || key == SP_ATTR_HREF ) { // xlink:href if ( !value ) { // No value g_free(this->href); |
