diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp index 381c1d20cec..cb17006c29e 100644 --- a/src/gui/text/qtextlayout.cpp +++ b/src/gui/text/qtextlayout.cpp @@ -1679,6 +1679,7 @@ namespace { inline void calculateRightBearing(QFontEngine *engine, glyph_t glyph) { + Q_ASSERT(engine); qreal rb; engine->getGlyphBearings(glyph, nullptr, &rb);