aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoni Poikelin <[email protected]>2025-05-12 10:25:00 +0300
committerJoni Poikelin <[email protected]>2025-06-03 04:58:56 +0000
commit7d3c2da9ffefeaf99d69e0faf88b65068579a6ab (patch)
tree574f020d6627e489617e277ff642264b118a3e6f
parentddb45c3cb6ffca606d4c0933b4135e7a0ac300c8 (diff)
Fix Rectangle with gradient and color set to transparentHEADdev
Fixes: QTBUG-134403 Pick-to: 6.10 6.9 6.8 Change-Id: Ibfbe6bc513d1e279d3d1d21661f8041500f02570 Reviewed-by: Laszlo Agocs <[email protected]>
-rw-r--r--src/quick/items/qquickrectangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickrectangle.cpp b/src/quick/items/qquickrectangle.cpp
index d17dfc2fe0..efaa752a51 100644
--- a/src/quick/items/qquickrectangle.cpp
+++ b/src/quick/items/qquickrectangle.cpp
@@ -767,7 +767,7 @@ QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
Q_D(QQuickRectangle);
if (width() <= 0 || height() <= 0
- || (d->color.alpha() == 0 && (!d->pen || d->pen->width() == 0 || d->pen->color().alpha() == 0))) {
+ || (d->gradient.isUndefined() && d->color.alpha() == 0 && (!d->pen || d->pen->width() == 0 || d->pen->color().alpha() == 0))) {
delete oldNode;
return nullptr;
}