diff options
author | Ning Chi <ext-chi.ning@nokia.com> | 2010-12-27 14:23:16 +0200 |
---|---|---|
committer | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2011-01-11 18:37:45 +0200 |
commit | de0520254bce3e257a503ef59f6df6dd6bb341b2 (patch) | |
tree | 894e8bee17806eb19c07a7e7a2f7a2257db34408 | |
parent | ce229adcefd2e9b5f28ba48a016cfc74989e3457 (diff) |
Fixes: worng cursor position when there is preediting text
RevBy: Pekka Vuorela
-rwxr-xr-x | src/corelib/widgets/mtextedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/widgets/mtextedit.cpp b/src/corelib/widgets/mtextedit.cpp index 62dea38c..4cfe7e28 100755 --- a/src/corelib/widgets/mtextedit.cpp +++ b/src/corelib/widgets/mtextedit.cpp @@ -2576,7 +2576,7 @@ QVariant MTextEdit::inputMethodQuery(Qt::InputMethodQuery query) const case Qt::ImCursorPosition: { int pos = cursorPosition() - block.position(); if (d->isPreediting()) { - pos = d->cursor()->anchor(); + pos = d->cursor()->anchor() - block.position(); } return QVariant(pos); } |