Skip to content

Commit

Permalink
No longer fail to read the content of messages in the Windows 10 Mail…
Browse files Browse the repository at this point in the history
… app.

UIATextInfo.getTextWithFields: if LookupError is thrown by _getControlFieldForObject, break out of the ancester loop, as this means the object isn't actually within the text.

Fixes #5635.
  • Loading branch information
michaelDCurran committed Jul 9, 2016
1 parent d42e72c commit 6a0f341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/NVDAObjects/UIA/__init__.py
Expand Up @@ -246,7 +246,10 @@ def getTextWithFields(self,formatConfig=None):
if e:
obj=UIA(UIAElement=e)
while obj and obj!=self.obj:
field=self._getControlFieldForObject(obj)
try:
field=self._getControlFieldForObject(obj)
except LookupError:
break
if field:
field=textInfos.FieldCommand("controlStart",field)
fields.append(field)
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -26,6 +26,7 @@
- Reporting colors in Microsoft Word is now more accurate as changes in Microsoft Office Themes are now taken into account. (#5997)
- Browse mode for Microsoft Edge and support for Start Menu search suggestions, is again available on Windows 10 builds after April 2016. (#5955)
- In Microsoft Word, automatic table header reading works better when dealing with merged cells. (#5926)
- In the Windows 10 Mail app, NVDA no longer fails to read the content of messages. (#5635)


= 2016.2.1 =
Expand Down

0 comments on commit 6a0f341

Please sign in to comment.