summaryrefslogtreecommitdiffstats
path: root/src/style-internal.h
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-02-07 13:34:51 +0000
committertavmjong-free <tavmjong@free.fr>2017-02-07 13:34:51 +0000
commit026d2dcd2a7bae80241905cc32afa13fde5faa95 (patch)
tree656a05d78c2d1ec9fc151f97e787099115f6ce42 /src/style-internal.h
parentDon't make Strict build default (diff)
downloadinkscape-026d2dcd2a7bae80241905cc32afa13fde5faa95.tar.gz
inkscape-026d2dcd2a7bae80241905cc32afa13fde5faa95.zip
Default style source to SP_STYLE_SRC_STYLE_PROP. Only set style_src on successful read.
Fixed bugs: - https://launchpad.net/bugs/1662285 (bzr r15490)
Diffstat (limited to 'src/style-internal.h')
-rw-r--r--src/style-internal.h6
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;
+ }
}
}