diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/style-internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/style-internal.h b/src/style-internal.h index 69b03f503..154538833 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -121,7 +121,7 @@ public: inherits(inherits), set(false), inherit(false), - style_src(SP_STYLE_SRC_UNSET), + style_src(SP_STYLE_SRC_STYLE_PROP), // Default to property, see bug 1662285. style(NULL) {} @@ -132,7 +132,9 @@ public: virtual void readIfUnset( gchar const *str, SPStyleSrc const &source = SP_STYLE_SRC_STYLE_PROP ) { if ( !set ) { read( str ); - style_src = source; + if ( set ) { + style_src = source; + } } } |
