Fix a warning in QGlyphRun compilation
Change-Id: Ic072240193fc8eb5e7fdcd0dada79383398b224b Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
This commit is contained in:
parent
bdf2225b9b
commit
2b2221fcfa
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user