Don't scale 0-region or region without rects

Change-Id: Ieb523dadc5d726e26645b3a90652be95c2707ea8
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
Tor Arne Vestbø 2013-01-07 23:48:20 +01:00 committed by The Qt Project
parent 4d670c5747
commit be93c6aeb3

View File

@ -6518,6 +6518,9 @@ void qt_mac_clip_cg(CGContextRef hd, const QRegion &rgn, CGAffineTransform *orig
// move to QRegion?
void qt_mac_scale_region(QRegion *region, qreal scaleFactor)
{
if (!region || !region->rectCount())
return;
QVector<QRect> scaledRects;
scaledRects.reserve(region->rects().count());