diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp index cc96c9262bb..e4c8a0a9195 100644 --- a/src/gui/text/qrawfont.cpp +++ b/src/gui/text/qrawfont.cpp @@ -608,9 +608,9 @@ bool QRawFont::glyphIndexesForChars(const QChar *chars, int numChars, quint32 *g */ bool QRawFont::advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs, LayoutFlags layoutFlags) const { - Q_ASSERT(glyphIndexes && advances); if (!d->isValid() || numGlyphs <= 0) return false; + Q_ASSERT(glyphIndexes && advances); QVarLengthArray tmpAdvances(numGlyphs);