diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 16:12:41 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 16:12:41 +0000 |
| commit | fa06e2deb21ba6d362ebd7d34b0ae59a614b5e3c (patch) | |
| tree | 84bb8f6071e403525d68a04c6589eb633176e774 /src/style-internal.cpp | |
| parent | Update to trunk (r13379) (diff) | |
| parent | update clang format spec for latest clangformat version (diff) | |
| download | inkscape-fa06e2deb21ba6d362ebd7d34b0ae59a614b5e3c.tar.gz inkscape-fa06e2deb21ba6d362ebd7d34b0ae59a614b5e3c.zip | |
Update to experimental r13389
(bzr r13090.1.81)
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index b15892128..8b4f3c1cd 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -648,9 +648,6 @@ SPIString::read( gchar const *str ) { if( !str ) return; - // libcroco puts quotes around some strings... remove - gchar *str_unquoted = attribute_unquote(str); - if (!strcmp(str, "inherit")) { set = true; inherit = true; @@ -658,10 +655,18 @@ SPIString::read( gchar const *str ) { } else { set = true; inherit = false; - value = g_strdup(str_unquoted); - } - g_free( str_unquoted ); + // libcroco puts quotes around some strings... remove + Glib::ustring str_unquoted(str); + css_unquote( str_unquoted ); + + // Unquote individual family names, Pango always uses unquoted names. + if( name.compare( "font-family" ) == 0 ) { + css_font_family_unquote( str_unquoted ); + } + + value = g_strdup(str_unquoted.c_str()); + } } |
