a11y atspi: Fix incorrect use of x instead of y position

Fixes: QTBUG-105031
Change-Id: I26fcbfbd5a90982b87dda89b2880efe937f099d8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit d40dacf5f4697a57314ec77709e4551977d97c29)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Michael Weghorn 2022-07-18 09:11:42 +02:00 committed by Qt Cherry-pick Bot
parent c810c93018
commit c8268beef4

View File

@ -1545,7 +1545,7 @@ static QRect getRelativeRect(QAccessibleInterface *interface)
wr = window->rect(); wr = window->rect();
cr.setX(cr.x() - wr.x()); cr.setX(cr.x() - wr.x());
cr.setY(cr.x() - wr.y()); cr.setY(cr.y() - wr.y());
} }
return cr; return cr;
} }