bad shadowColor check fixed

This commit is contained in:
Uwe Rathmann 2024-05-21 16:08:40 +02:00
parent 0afecc4b9e
commit 319abafb0d
1 changed files with 6 additions and 5 deletions

View File

@ -120,8 +120,9 @@ void QskArcNode::setArcData( const QRectF& rect, const QskArcMetrics& arcMetrics
} }
const auto isFillNodeVisible = gradient.isVisible() && !metricsArc.isNull(); const auto isFillNodeVisible = gradient.isVisible() && !metricsArc.isNull();
const auto isStrokeNodeVisible = borderWidth > 0.0 && borderColor.alpha() > 0; const auto isStrokeNodeVisible = ( borderWidth > 0.0 ) && ( borderColor.alpha() > 0 );
const auto isShadowNodeVisible = shadowColor.alpha() > 0.0 && isFillNodeVisible; const auto isShadowNodeVisible = isFillNodeVisible &&
shadowColor.isValid() && ( shadowColor.alpha() > 0.0 );
const auto path = metricsArc.painterPath( arcRect ); const auto path = metricsArc.painterPath( arcRect );
@ -188,7 +189,7 @@ void QskArcNode::setArcData( const QRectF& rect, const QskArcMetrics& arcMetrics
borderNode = nullptr; borderNode = nullptr;
} }
qskUpdateChildren(this, ShadowRole, shadowNode); qskUpdateChildren( this, ShadowRole, shadowNode );
qskUpdateChildren(this, FillRole, fillNode); qskUpdateChildren( this, FillRole, fillNode );
qskUpdateChildren(this, BorderRole, borderNode); qskUpdateChildren( this, BorderRole, borderNode );
} }