diff options
author | José Millán Soto <fid@gpul.org> | 2011-03-20 18:19:32 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-03-22 13:55:53 (GMT) |
commit | 6cd51aeec11e7a70ba560c350274d5a4bd43c9b9 (patch) | |
tree | ebb9bb87a1bc1a82561f8d04a7f947989d6e6312 /src | |
parent | e3cd651d92a9e550fe52360d1be6ae41d0f2ab85 (diff) | |
download | Qt-6cd51aeec11e7a70ba560c350274d5a4bd43c9b9.zip Qt-6cd51aeec11e7a70ba560c350274d5a4bd43c9b9.tar.gz Qt-6cd51aeec11e7a70ba560c350274d5a4bd43c9b9.tar.bz2 |
QAccessibleTextEdit: Using x coordinate for calculate character width
Merge-request: 1148
Task-number: QTBUG-18233
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src')
-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 09b5015..ca3f827 100644 --- a/src/plugins/accessible/widgets/qaccessiblewidgets.cpp +++ b/src/plugins/accessible/widgets/qaccessiblewidgets.cpp @@ -1334,7 +1334,7 @@ QRect QAccessibleTextEdit::characterRect(int offset, CoordinateType coordType) QRect r = edit->cursorRect(cursor); if (cursor.movePosition(QTextCursor::NextCharacter)) { - r.setWidth(edit->cursorRect(cursor).y() - r.y()); + r.setWidth(edit->cursorRect(cursor).x() - r.x()); } else { // we don't know the width of the character - maybe because we're at document end // in that case, IAccessible2 tells us to return the width of a default character |