diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-02-07 13:34:51 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-02-07 13:34:51 +0000 |
| commit | 026d2dcd2a7bae80241905cc32afa13fde5faa95 (patch) | |
| tree | 656a05d78c2d1ec9fc151f97e787099115f6ce42 /src | |
| parent | Don't make Strict build default (diff) | |
| download | inkscape-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')
| -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; + } } } |
