diff options
author | José Millán Soto <fid@gpul.org> | 2011-06-06 13:03:09 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2011-06-06 13:03:09 (GMT) |
commit | 97c59df43d821e8e1784749e72f8ee7f90d46da2 (patch) | |
tree | 5aa2262190d26371cb2603df6068774368ad1452 /src/plugins/accessible | |
parent | 7b60b6621e8a3fce144b8fe5edb07bcf9cc331d7 (diff) | |
download | Qt-97c59df43d821e8e1784749e72f8ee7f90d46da2.zip Qt-97c59df43d821e8e1784749e72f8ee7f90d46da2.tar.gz Qt-97c59df43d821e8e1784749e72f8ee7f90d46da2.tar.bz2 |
Changing cursor position in all boundaries
Merge-request: 1242
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src/plugins/accessible')
-rw-r--r-- | src/plugins/accessible/widgets/qaccessiblewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/qaccessiblewidgets.cpp b/src/plugins/accessible/widgets/qaccessiblewidgets.cpp index 34f5be9..ea5880c 100644 --- a/src/plugins/accessible/widgets/qaccessiblewidgets.cpp +++ b/src/plugins/accessible/widgets/qaccessiblewidgets.cpp @@ -1435,9 +1435,9 @@ QString QAccessibleTextEdit::textAtOffset(int offset, BoundaryType boundaryType, if (offset >= characterCount()) return QString(); + cursor.setPosition(offset); switch (boundaryType) { case CharBoundary: - cursor.setPosition(offset); *startOffset = cursor.position(); cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor); *endOffset = cursor.position(); |