If we come across NaN geometry, we treat it as spanning
the entire viewport, similar to other geometries with
undefined geometry.
Task-number: QTBUG-34520
Change-Id: Ia4171f9f13d876c6c587043ad7decaa19bb85f01
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
vd += g->sizeOfVertex();
}
bounds.map(*node->matrix());
+
+ if (!qIsFinite(bounds.tl.x))
+ bounds.tl.x = -FLT_MAX;
+ if (!qIsFinite(bounds.tl.y))
+ bounds.tl.y = -FLT_MAX;
+ if (!qIsFinite(bounds.br.x))
+ bounds.br.x = FLT_MAX;
+ if (!qIsFinite(bounds.br.y))
+ bounds.br.y = FLT_MAX;
}
RenderNodeElement::~RenderNodeElement()