From 821d7f7787e19ce6f094fc54b8dc7bf69e0b176f Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Fri, 1 Nov 2019 20:36:16 +0100 Subject: fix #497 don't set 'd' style property --- src/style-internal.cpp | 1 + src/style-internal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 18be536f3..bce687d7f 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -1099,6 +1099,7 @@ SPIString::read( gchar const *str ) { Glib::ustring str_temp(str); if (id() == SP_ATTR_D && style_src == SP_STYLE_SRC_ATTRIBUTE) { set = false; + return; } if (id() == SP_PROP_FONT_FAMILY) { // Family names may be quoted in CSS, internally we use unquoted names. diff --git a/src/style-internal.h b/src/style-internal.h index d04617387..fb24b9631 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -150,9 +150,9 @@ public: } if ( !set || (has_important && !important) ) { + style_src = source; read( stripped.c_str() ); if ( set ) { - style_src = source; if (has_important) { important = true; } -- cgit v1.2.3