Created attachment 181545 [details] Sample document to reproduce the issue The reported bounds for centered text in Impress is incorrect, as can be seen e.g. when querying them via a11y tools via AT-SPI on Linux. It looks as if the coordinates might fit if the text was left-aligned instead. Steps to reproduce (s.a. attached screencast): 1) start Accerciser ( https://gitlab.gnome.org/GNOME/accerciser ) 2) open the attached sample document "tdf150064.fodp" (from https://gerrit.libreoffice.org/c/core/+/137681 ) 3) click through the a11y hierarchy in Accerciser's treeview to get to the presentation title, then click on the child that is a paragraph 4) observe what area is highlighted on the screen by Accerciser Actual result: The highlighted area does not match the area actually covered by the text. It is too far left. (Might possibly match if the text was left-aligned.) Expected result: The area highlighted on screen when clicking the paragraph element in Accerciser should match the area that is actually covered by the text. Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: 5c68399e6bea3aa18477487400f8bb143d6ed84e CPU threads: 12; OS: Linux 5.18; UI render: default; VCL: qt6 (qfont+xcb) Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded
I am working on a fix.
Created attachment 181546 [details] Screencast demonstrating the issue with Accerciser
Unassigning for now, since it's unlikely I'll find the time to continue looking further into this anytime soon.