From 16c9ea2161fd1c3d45f061c4e40c295846dfc6c1 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 21 May 2024 17:00:13 +0200 Subject: [PATCH] Squashed commit of the following: commit 319abafb0dd4c0e9e3966e87a87c79bc5b07d224 Author: Uwe Rathmann Date: Tue May 21 16:08:40 2024 +0200 bad shadowColor check fixed --- src/nodes/QskArcNode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nodes/QskArcNode.cpp b/src/nodes/QskArcNode.cpp index a3fd4042..eb9c8284 100644 --- a/src/nodes/QskArcNode.cpp +++ b/src/nodes/QskArcNode.cpp @@ -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 );