diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2012-02-06 13:05:21 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-09 10:46:34 +0100 |
commit | 3e720809b0313ba1d3e51e29e951604971946935 (patch) | |
tree | 6dbb85a03e7712351c3ce862e42165d1186e805a /src | |
parent | ef7fd678457496abc0b2d204c816b10a57816907 (diff) |
Eliminate a warning
Change-Id: I984821d90df272b85d02c6ee0db5a89174d80873
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qtextlayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp index ac92c4dd51..84d3fce518 100644 --- a/src/gui/text/qtextlayout.cpp +++ b/src/gui/text/qtextlayout.cpp @@ -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) { |