nvaccess / nvda

NVDA, the free and open source Screen Reader for Microsoft Windows
https://www.nvaccess.org/
Other
2.12k stars 639 forks source link

Activating the routing key above the current position in a LibreOffice document generates a stacktrace #4694

Open nvaccessAuto opened 9 years ago

nvaccessAuto commented 9 years ago

Reported by bramd on 2014-12-15 00:24 Activating the braille routing key above the current cursor position in a LibreOffice document generates the following stacktrace:

Traceback (most recent call last): File "scriptHandler.pyc", line 176, in executeScript File "globalCommands.pyc", line 1266, in script_braille_routeTo File "braille.pyc", line 1362, in routeTo File "braille.pyc", line 1108, in routeTo File "braille.pyc", line 835, in routeTo File "textInfosinit.pyc", line 444, in activate AttributeError: 'CompoundDocument' object has no attribute 'isInForeground'

Using the routing keys to move the cursor works fine. Tested with LibreOffice 4.3.4.1.

nvaccessAuto commented 9 years ago

Comment 1 by jteh on 2014-12-15 04:53 Out of interest, apart from not throwing an exception, what did you expect it to do?

nvaccessAuto commented 9 years ago

Comment 2 by bramd (in reply to comment 1) on 2014-12-15 22:21 Replying to jteh:

Out of interest, apart from not throwing an exception, what did you expect it to do?

Ehm, well, nothing really. I accidentally pressed the routing button twice, got this traceback and reproduced it.

LeonarddeR commented 7 years ago

cc @bramd

bramd commented 7 years ago

Still reproducible here on latest next. It seems we need to implement the isInForeground property for CompoundDocuments. However, I don't know how to determine if such an object is in the foreground.

Adriani90 commented 2 months ago

cc: @bramd, @dkager, @Emil-18, @burmancomp could you please test with a braille display whether this issue is still reproducible in Libreoffice dev 25.2? You can download the last daily build here: https://dev-builds.libreoffice.org/daily/master/Win-x86_64@tb77-TDF/2024-10-01_03.59.33/LibreOfficeDev_25.2.0.0.alpha0_Win_x86-64.msi