Skip to content

Fixes an issue where using the display speech output braille mode while no braille display is connected causes zero division errors#17243

Merged
seanbudd merged 1 commit into
nvaccess:masterfrom
Emil-18:zeroDevisionFix
Oct 22, 2024
Merged

Conversation

@Emil-18

@Emil-18 Emil-18 commented Oct 3, 2024

Copy link
Copy Markdown
Contributor

Link to issue number:

fixes #17092

Summary of the issue:

When using the display speech output braille mode with no braille display connected and the braille viewer closed, zero division errors are thrown

Description of user facing changes

The user can have braille mode set to display speech output at all times, without NVDA spamming the log file

Description of development approach

Made the showSpeechInBraille function return without doing anything if the braille.handler object is not enabled

Testing strategy:

I am unable to test it, because when I run NVDA from source it crashes. @josephsl Could you confirm that this works?

Known issues with pull request:

None

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@seanbudd

Copy link
Copy Markdown
Member

Is this ready for review? This has sat as a draft for 3 weeks

@Emil-18 Emil-18 marked this pull request as ready for review October 21, 2024 23:47
@Emil-18 Emil-18 requested a review from a team as a code owner October 21, 2024 23:47
@Emil-18 Emil-18 requested a review from SaschaCowley October 21, 2024 23:47

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Emil-18

@seanbudd seanbudd merged commit 8d6a860 into nvaccess:master Oct 22, 2024
@github-actions github-actions Bot added this to the 2025.1 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Braille: zero division error while using "speech output" mode

2 participants