summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-05-15 10:18:08 +0000
committertavmjong-free <tavmjong@free.fr>2014-05-15 10:18:08 +0000
commit39f6feb2f4297f5460be4b7a0f711f19af5dfc9a (patch)
tree74f0af1ef40c9fdaf09e697457a73d854ea12c61 /src/style-internal.cpp
parentTranslations. Japanese translation update by Masato Hashimoto. (diff)
downloadinkscape-39f6feb2f4297f5460be4b7a0f711f19af5dfc9a.tar.gz
inkscape-39f6feb2f4297f5460be4b7a0f711f19af5dfc9a.zip
Style rewrite: Unquote strings from libcroco. Fixes 1303422.
Fixed bugs: - https://launchpad.net/bugs/1303422 (bzr r13377)
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 );
}