From b26d71edf8788add516ce94389c7ffd6c8bc6c4a Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 3 Dec 2018 16:27:19 +0100 Subject: Fix error comment condition, thereby fixing object-test. --- src/style-internal.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/style-internal.cpp') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index 7459cd1b8..b02adec48 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -188,8 +188,8 @@ SPIScale24::merge( const SPIBase* const parent ) { value = p->value; } } else { - // Needed only for 'opacity' which does not inherit. See comment at bottom of file. - if( name.compare( "opacity" ) != 0 ) + // Needed only for 'opacity' and 'stop-opacity' which do not inherit. See comment at bottom of file. + if( name != "opacity" && name != "stop-opacity" ) std::cerr << "SPIScale24::merge: unhandled property: " << name << std::endl; if( !set || (!inherit && value == SP_SCALE24_MAX) ) { value = p->value; @@ -2886,9 +2886,9 @@ SPIVectorEffect::operator==(const SPIBase& rhs) { /* ---------------------------- NOTES ----------------------------- */ /* - * opacity's effect is cumulative; we set the new value to the combined effect. The - * default value for opacity is 1.0, not inherit. (Note that stroke-opacity and - * fill-opacity are quite different from opacity, and don't need any special handling.) + * opacity's effect is cumulative; we set the new value to the combined effect. The default value + * for opacity is 1.0, not inherit. stop-opacity also does not inherit. (Note that stroke-opacity + * and fill-opacity are quite different from opacity, and don't need any special handling.) * * Cases: * - parent & child were each previously unset, in which case the effective -- cgit v1.2.3