backgrounds: guard against degenerate ShapePaths crashing Qt CurveRenderer

This commit is contained in:
Lemmy
2026-03-04 10:14:43 -05:00
parent 57b9c2edd9
commit 4163fc7632
2 changed files with 2 additions and 2 deletions
@@ -124,7 +124,7 @@ ShapePath {
// ShapePath configuration
strokeWidth: -1 // No stroke, fill only
fillColor: Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, backgroundColor.a * opacityFactor)
fillColor: shouldShow ? Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, backgroundColor.a * opacityFactor) : "transparent"
fillRule: isFramed ? ShapePath.OddEvenFill : ShapePath.WindingFill
// Starting position
@@ -91,7 +91,7 @@ ShapePath {
startX: panelX + tlRadius * tlMultX
startY: panelY
fillColor: effectiveBackgroundColor
fillColor: (assignedPanel && panelBg && panelWidth > 0 && panelHeight > 0) ? effectiveBackgroundColor : "transparent"
// ========== PATH DEFINITION ==========
// Draws a rectangle with potentially inverted corners