diff options
author | José Millán Soto <fid@gpul.org> | 2011-03-20 18:19:32 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:57 (GMT) |
commit | 3b1b24d0ba64af705c6d80db9452358d52c9e4ff (patch) | |
tree | b08380c9f3b877dacdc1fdf6e6e4f729996d42cf /src | |
parent | af43ab1bd73b908f2f82d65fe8fa8c62f5c78084 (diff) | |
download | Qt-3b1b24d0ba64af705c6d80db9452358d52c9e4ff.zip Qt-3b1b24d0ba64af705c6d80db9452358d52c9e4ff.tar.gz Qt-3b1b24d0ba64af705c6d80db9452358d52c9e4ff.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 705aef0..fed1e77 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 |