diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2010-11-02 11:36:27 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:55 (GMT) |
commit | dea888b354ec53e35e15ddc5a0143e4861e5d30b (patch) | |
tree | bcf4130c53e20a97fdf3654a4c497a7d620b5d45 /src | |
parent | 93db38955314bf1f65ec5e66b23d005117358135 (diff) | |
download | Qt-dea888b354ec53e35e15ddc5a0143e4861e5d30b.zip Qt-dea888b354ec53e35e15ddc5a0143e4861e5d30b.tar.gz Qt-dea888b354ec53e35e15ddc5a0143e4861e5d30b.tar.bz2 |
Fix cursor position of one digit after RTL text
A single digit after RTL text will be considered as RTL because it
was treated as Other Neutral (DirON), it can be solved by changing
it to DirAN.
Task-number: QTBUG-2795
Reviewed-by: Lars Knoll
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 66773c6..5cad9b7 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -612,7 +612,7 @@ static bool bidiItemize(QTextEngine *engine, QScriptAnalysis *analysis, QBidiCon } else { eor = current; } - dir = QChar::DirON; status.eor = QChar::DirAN; + dir = QChar::DirAN; status.eor = QChar::DirAN; break; case QChar::DirCS: if(status.eor == QChar::DirAN) { |