summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-05-15 10:22:12 +0000
committertavmjong-free <tavmjong@free.fr>2014-05-15 10:22:12 +0000
commitd1022d88770ba85ab55285f8d59e0d3ee94ec153 (patch)
treee60237144f9d9b12197ded7a05fcfbff7e9a65b4 /src/style-internal.cpp
parentEnable lcms2 support on OS X (diff)
downloadinkscape-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.cpp7
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 );
}