Squashed commit of the following:

commit 319abafb0d
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Tue May 21 16:08:40 2024 +0200

    bad shadowColor check fixed
This commit is contained in:
Uwe Rathmann 2024-05-21 17:00:13 +02:00
parent aba7656d2a
commit 16c9ea2161
1 changed files with 3 additions and 2 deletions

View File

@ -130,8 +130,9 @@ void QskArcNode::setArcData( const QRectF& rect, const QskArcMetrics& arcMetrics
}
const auto isFillNodeVisible = gradient.isVisible() && !metricsArc.isNull();
const auto isStrokeNodeVisible = borderWidth > 0.0 && borderColor.alpha() > 0;
const auto isShadowNodeVisible = shadowColor.alpha() > 0.0 && isFillNodeVisible;
const auto isStrokeNodeVisible = ( borderWidth > 0.0 ) && ( borderColor.alpha() > 0 );
const auto isShadowNodeVisible = isFillNodeVisible &&
shadowColor.isValid() && ( shadowColor.alpha() > 0.0 );
const auto path = metricsArc.painterPath( arcRect );