Eliminate a warning
authorJiang Jiang <jiang.jiang@nokia.com>
Mon, 6 Feb 2012 12:05:21 +0000 (13:05 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 09:46:34 +0000 (10:46 +0100)
Change-Id: I984821d90df272b85d02c6ee0db5a89174d80873
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qtextlayout.cpp

index ac92c4d..84d3fce 100644 (file)
@@ -2124,8 +2124,8 @@ static QGlyphRun glyphRunWithInfo(QFontEngine *fontEngine, const QGlyphLayout &g
     Q_ASSERT(glyphsArray.size() == positionsArray.size());
 
     qreal fontHeight = font.ascent() + font.descent();
-    qreal minY;
-    qreal maxY;
+    qreal minY = 0;
+    qreal maxY = 0;
     QVector<quint32> glyphs;
     QVector<QPointF> positions;
     for (int i=0; i<glyphsArray.size(); ++i) {