diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2012-06-25 13:22:12 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 01:08:37 +0200 |
commit | 2ff6086e0655449ee0c7ca0e4e91ee5bda7ca7bf (patch) | |
tree | 18b06e4d7772a8c6097e30f09dc37d818f1e9ea3 /src | |
parent | f9c73f0785cd19ddd535778270446b7747f217d2 (diff) |
Fix capitalization with newline bug
We only want to change the capitalization if the QScriptAnalysis flag
was Lowercase, Uppercase or SmallCaps.
Task-number: QTBUG-17485
Change-Id: Icbecb09b06a9153866ae81d592b3f6779c2dafb5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qtextengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 6c290e209a..41d12a65d6 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -110,7 +110,7 @@ private: QScriptItemArray::Iterator iter = m_items.end(); do { iter--; - if (iter->analysis.flags < QScriptAnalysis::TabOrObject) + if (iter->analysis.flags < QScriptAnalysis::LineOrParagraphSeparator) iter->analysis.flags = flags; } while (iter->position > start); } |