summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-04-21 22:09:55 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-04-21 22:09:55 +0000
commit5e4fd475d24a74972756cd9b10ef0812d98d14a8 (patch)
tree40f441e9b77f4fcdda3af3376440b4a398e67d27 /src/style-internal.cpp
parentUpdate POT files (diff)
downloadinkscape-5e4fd475d24a74972756cd9b10ef0812d98d14a8.tar.gz
inkscape-5e4fd475d24a74972756cd9b10ef0812d98d14a8.zip
Fixes for d promote to property
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index ef4fbb2ec..f8f2042c4 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -1030,7 +1030,6 @@ SPINumeric::write( guint const flags, SPStyleSrc const &style_src_req, SPIBase c
void
SPIString::read( gchar const *str ) {
-
if( !str ) return;
if (!strcmp(str, "inherit")) {
@@ -1042,6 +1041,9 @@ SPIString::read( gchar const *str ) {
inherit = false;
Glib::ustring str_temp(str);
+ if( name.compare( "d" ) == 0 && style_src == SP_STYLE_SRC_ATTRIBUTE) {
+ set = false;
+ }
if( name.compare( "font-family" ) == 0 ) {
// Family names may be quoted in CSS, internally we use unquoted names.
css_font_family_unquote( str_temp );