diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/text/qtextengine_mac.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine_mac.cpp b/src/gui/text/qtextengine_mac.cpp index 7566d44..ead2806 100644 --- a/src/gui/text/qtextengine_mac.cpp +++ b/src/gui/text/qtextengine_mac.cpp @@ -608,8 +608,10 @@ void QTextEngine::shapeTextMac(int item) const // Skip shaping of line or paragraph separators since we are not // going to draw them anyway if (si.analysis.flags == QScriptAnalysis::LineOrParagraphSeparator - && !(option.flags() & QTextOption::ShowLineAndParagraphSeparators)) + && !(option.flags() & QTextOption::ShowLineAndParagraphSeparators)) { + memset(log_clusters, 0, len * sizeof(unsigned short)); goto cleanUp; + } if (!fe->stringToCMap(str, len, &g, &num_glyphs, flags, log_clusters, attributes(), &si)) { ensureSpace(num_glyphs); |