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-use.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-use.cpp')
| -rw-r--r-- | src/sp-use.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp index c8a0830c1..bf91d52b7 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -82,6 +82,7 @@ void SPUse::build(SPDocument *document, Inkscape::XML::Node *repr) { this->readAttr( "width" ); this->readAttr( "height" ); this->readAttr( "xlink:href" ); + this->readAttr( "href" ); // We don't need to create child here: // reading xlink:href will attach ref, and that will cause the changed signal to be emitted, @@ -128,7 +129,9 @@ void SPUse::set(unsigned int key, const gchar* value) { this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); break; - case SP_ATTR_XLINK_HREF: { + case SP_ATTR_XLINK_HREF: + case SP_ATTR_HREF: + { if ( value && this->href && ( strcmp(value, this->href) == 0 ) ) { /* No change, do nothing. */ } else { |
