From ec01ba89386aa90dc237d10a877512e336a05e21 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sun, 27 Oct 2019 20:06:46 +0100 Subject: fix merging "opacity" and "stop-opacity" Regression of abc7ea9287dc --- src/style-internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/style-internal.cpp') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 80f7c1cea..3fe9fcb81 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -195,7 +195,7 @@ SPIScale24::merge( const SPIBase* const parent ) { std::cerr << "SPIScale24::merge: unhandled property: " << name << std::endl; if( !set || (!inherit && value == SP_SCALE24_MAX) ) { value = p->value; - set = (value != 1.0); + set = (value != SP_SCALE24_MAX); } else { if( inherit ) value = p->value; // Insures child is up-to-date value = SP_SCALE24_MUL( value, p->value ); -- cgit v1.2.3