summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-11-02 11:36:27 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2010-11-15 12:55:43 (GMT)
commite084fbbe18d771702312d7db65030aaaf18b596b (patch)
tree537c81578ae773c7c05d7a09b82e376c0015a3bf /src/gui
parent0b338187627f874ff27b452fcd67e285cee128c3 (diff)
downloadQt-e084fbbe18d771702312d7db65030aaaf18b596b.zip
Qt-e084fbbe18d771702312d7db65030aaaf18b596b.tar.gz
Qt-e084fbbe18d771702312d7db65030aaaf18b596b.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/gui')
-rw-r--r--src/gui/text/qtextengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp
index f4f2168..06eed55 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) {