diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index bc046d922c0..09853114f7a 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -1529,6 +1529,7 @@ void QTextEngine::shapeText(int item) const QGlyphLayout g = availableGlyphs(&si); g.glyphs[0] = 0; g.attributes[0].clusterStart = true; + g.attributes[0].dontPrint = true; ushort *log_clusters = logClusters(&si); for (int i = 0; i < itemLength; ++i) diff --git a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp index 1569a4bf84f..8abb37b7454 100644 --- a/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp +++ b/tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp @@ -613,9 +613,7 @@ void tst_QGlyphRun::defaultIgnorables() layout.endLayout(); QList runs = layout.glyphRuns(); - QCOMPARE(runs.size(), 1); - QCOMPARE(runs.at(0).glyphIndexes().size(), 1); - QCOMPARE(runs.at(0).glyphIndexes()[0], uint(0)); + QCOMPARE(runs.size(), 0); } #endif // QT_NO_RAWFONT