summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/style-internal.cpp1
-rw-r--r--src/style-internal.h2
2 files changed, 2 insertions, 1 deletions
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;
}