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:
parent
4d670c5747
commit
be93c6aeb3
@ -6518,6 +6518,9 @@ void qt_mac_clip_cg(CGContextRef hd, const QRegion &rgn, CGAffineTransform *orig
|
|||||||
// move to QRegion?
|
// move to QRegion?
|
||||||
void qt_mac_scale_region(QRegion *region, qreal scaleFactor)
|
void qt_mac_scale_region(QRegion *region, qreal scaleFactor)
|
||||||
{
|
{
|
||||||
|
if (!region || !region->rectCount())
|
||||||
|
return;
|
||||||
|
|
||||||
QVector<QRect> scaledRects;
|
QVector<QRect> scaledRects;
|
||||||
scaledRects.reserve(region->rects().count());
|
scaledRects.reserve(region->rects().count());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user