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/color-profile.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/color-profile.cpp')
| -rw-r--r-- | src/color-profile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp index bcefe994a..99c62ecb3 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -271,6 +271,7 @@ void ColorProfile::build(SPDocument *document, Inkscape::XML::Node *repr) { SPObject::build(document, repr); this->readAttr( "xlink:href" ); + this->readAttr( "href" ); this->readAttr( "id" ); this->readAttr( "local" ); this->readAttr( "name" ); @@ -289,6 +290,7 @@ void ColorProfile::build(SPDocument *document, Inkscape::XML::Node *repr) { void ColorProfile::set(unsigned key, gchar const *value) { switch (key) { case SP_ATTR_XLINK_HREF: + case SP_ATTR_HREF: if ( this->href ) { g_free( this->href ); this->href = 0; |
