Fix a warning in QGlyphRun compilation

Change-Id: Ic072240193fc8eb5e7fdcd0dada79383398b224b
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
Jiang Jiang 2011-11-04 14:47:57 +01:00 committed by Qt by Nokia
parent bdf2225b9b
commit 2b2221fcfa

View File

@ -468,6 +468,7 @@ QRectF QGlyphRun::boundingRect() const
return d->boundingRect;
qreal minX, minY, maxX, maxY;
minX = minY = maxX = maxY = 0;
for (int i=0; i<qMin(d->glyphPositions.size(), d->glyphIndexes.size()); ++i) {
QRectF glyphRect = d->rawFont.boundingRect(d->glyphIndexes.at(i));