diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-03-14 19:03:37 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-03-14 19:03:37 +0000 |
| commit | 0d87d9a884e3bc0a185f152da66f3028ab8c71e6 (patch) | |
| tree | e892a1575317a4871f38dfa7032429843f451ebc /src/style-internal.cpp | |
| parent | CI/AppVeyor: Push link to latest build artifact to http://alpha.inkscape.org/... (diff) | |
| download | inkscape-0d87d9a884e3bc0a185f152da66f3028ab8c71e6.tar.gz inkscape-0d87d9a884e3bc0a185f152da66f3028ab8c71e6.zip | |
Fix bug in operator= for SPIFontVariableSettings.
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index ba60d06e8..ef4fbb2ec 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -596,9 +596,8 @@ SPIFontVariationSettings::write( guint const flags, SPStyleSrc const &style_src_ void SPIFontVariationSettings::cascade( const SPIBase* const parent ) { - if( const SPIFontVariationSettings* p = dynamic_cast<const SPIFontVariationSettings*>(parent) ) { - if( (inherits && !set) || inherit ) { + if( !set || inherit ) { // Always inherits normal = p->normal; axes.clear(); axes = p->axes; |
