diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-05-15 10:22:12 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-05-15 10:22:12 +0000 |
| commit | d1022d88770ba85ab55285f8d59e0d3ee94ec153 (patch) | |
| tree | e60237144f9d9b12197ded7a05fcfbff7e9a65b4 /src/style-internal.cpp | |
| parent | Enable lcms2 support on OS X (diff) | |
| download | inkscape-d1022d88770ba85ab55285f8d59e0d3ee94ec153.tar.gz inkscape-d1022d88770ba85ab55285f8d59e0d3ee94ec153.zip | |
Style rewrite: Unquote strings from libcroco. Fixes 1303422.
Fixed bugs:
- https://launchpad.net/bugs/1303422
(bzr r13341.1.23)
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 2c488105b..b15892128 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -648,7 +648,8 @@ SPIString::read( gchar const *str ) { if( !str ) return; - g_free(value); + // libcroco puts quotes around some strings... remove + gchar *str_unquoted = attribute_unquote(str); if (!strcmp(str, "inherit")) { set = true; @@ -657,8 +658,10 @@ SPIString::read( gchar const *str ) { } else { set = true; inherit = false; - value = g_strdup(str); + value = g_strdup(str_unquoted); } + + g_free( str_unquoted ); } |
