Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid error in PowerPoint slideshows when focus highlighting is on #17724

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion source/appModules/powerpnt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2012-2024 NV Access Limited, Leonard de Ruijter
# Copyright (C) 2012-2025 NV Access Limited, Leonard de Ruijter
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

Expand Down Expand Up @@ -1360,6 +1360,11 @@ class SlideShowTreeInterceptorTextInfo(NVDAObjectTextInfo):
def _getStoryText(self):
return self.obj.rootNVDAObject.basicText

def _get_boundingRects(self):
if self.obj.rootNVDAObject.hasIrrelevantLocation:
raise LookupError("Object is off screen, invisible or has no location")
return [self.obj.rootNVDAObject.location]

def _getOffsetsFromNVDAObject(self, obj):
if obj == self.obj.rootNVDAObject:
return (0, self._getStoryLength())
Expand Down