ngraph: move shape safeguarding

This commit is contained in:
Lemmy
2026-03-05 15:16:13 -05:00
parent 7a3f549648
commit 6eb5085d04
+2 -2
View File
@@ -258,7 +258,7 @@ Item {
Shape {
anchors.fill: parent
preferredRendererType: Shape.CurveRenderer
visible: root.hasData
visible: root.hasData && width > 0 && height > 0
ShapePath {
fillGradient: LinearGradient {
@@ -300,7 +300,7 @@ Item {
Shape {
anchors.fill: parent
preferredRendererType: Shape.CurveRenderer
visible: root.hasData2
visible: root.hasData2 && width > 0 && height > 0
ShapePath {
fillGradient: LinearGradient {