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-filter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp-filter.cpp') diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index c17c67fc5..4d9aed9c8 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -79,6 +79,7 @@ void SPFilter::build(SPDocument *document, Inkscape::XML::Node *repr) { this->readAttr( "height" ); this->readAttr( "filterRes" ); this->readAttr( "xlink:href" ); + this->readAttr( "href" ); this->_refcount = 0; SPObject::build(document, repr); @@ -173,6 +174,7 @@ void SPFilter::set(unsigned int key, gchar const *value) { this->requestModified(SP_OBJECT_MODIFIED_FLAG); break; case SP_ATTR_XLINK_HREF: + case SP_ATTR_HREF: if (value) { try { this->href->attach(Inkscape::URI(value)); -- cgit v1.2.3