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-script.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp-script.cpp') diff --git a/src/sp-script.cpp b/src/sp-script.cpp index f1ea9c9bd..78a6544b3 100644 --- a/src/sp-script.cpp +++ b/src/sp-script.cpp @@ -28,6 +28,7 @@ void SPScript::build(SPDocument* doc, Inkscape::XML::Node* repr) { //Read values of key attributes from XML nodes into object. this->readAttr( "xlink:href" ); + this->readAttr( "href" ); doc->addResource("script", this); } @@ -58,6 +59,7 @@ void SPScript::modified(unsigned int /*flags*/) { void SPScript::set(unsigned int key, const gchar* value) { switch (key) { case SP_ATTR_XLINK_HREF: + case SP_ATTR_HREF: if (this->xlinkhref) { g_free(this->xlinkhref); } -- cgit v1.2.3