Commit 0dc0db6a authored by Gunnar Sletta's avatar Gunnar Sletta Committed by Qt by Nokia
Browse files

Don't create geometries for transparent Rectangle {} elements


Change-Id: If59f7ad7f85849559707cecacc9e2d917e68ab26
Reviewed-by: default avatarAaron Kennedy <aaron.kennedy@nokia.com>
parent 59c3556a
No related merge requests found
Showing with 2 additions and 1 deletion
...@@ -492,7 +492,8 @@ QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData ...@@ -492,7 +492,8 @@ QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
Q_UNUSED(data); Q_UNUSED(data);
Q_D(QQuickRectangle); Q_D(QQuickRectangle);
if (width() <= 0 || height() <= 0) { if (width() <= 0 || height() <= 0
|| (d->color.alpha() == 0 && (!d->pen || d->pen->width() == 0 || d->pen->color().alpha() == 0))) {
delete oldNode; delete oldNode;
return 0; return 0;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment