Task-number: QTBUG-35656
Task-number: QTBUG-36050
Change-Id: Iea2d5303bdeb9c523e59ebcdc9f97288060be022
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
sourceRect.width() / d->pix.width(),
sourceRect.height() / d->pix.height());
+ if (targetRect.isEmpty()
+ || !qIsFinite(targetRect.width()) || !qIsFinite(targetRect.height())
+ || nsrect.isEmpty()
+ || !qIsFinite(nsrect.width()) || !qIsFinite(nsrect.height())) {
+ delete node;
+ return 0;
+ }
+
if (d->pixmapChanged) {
// force update the texture in the node to trigger reconstruction of
// geometry and the likes when a atlas segment has changed.