From 01ed6d62a228ce560c5ed0976b63609efb7076ac Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 29 Apr 2016 14:03:21 +0200 Subject: SVG 2 allows 'href' without 'xlink:'. For now just read plain 'href'. (bzr r14863) --- src/sp-tref.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sp-tref.cpp') 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); -- cgit v1.2.3