Skip to content

Commit 2a5c750

Browse files
authored
Merge 7d82112 into e27e907
2 parents e27e907 + 7d82112 commit 2a5c750

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

source/NVDAObjects/UIA/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#NVDAObjects/UIA/__init__.py
2-
#A part of NonVisual Desktop Access (NVDA)
3-
#This file is covered by the GNU General Public License.
4-
#See the file COPYING for more details.
5-
#Copyright (C) 2009-2019 NV Access Limited, Joseph Lee, Mohammad Suliman, Babbage B.V., Leonard de Ruijter
1+
# A part of NonVisual Desktop Access (NVDA)
2+
# This file is covered by the GNU General Public License.
3+
# See the file COPYING for more details.
4+
# Copyright (C) 2009-2020 NV Access Limited, Joseph Lee, Mohammad Suliman, Babbage B.V., Leonard de Ruijter
65

76
"""Support for UI Automation (UIA) controls."""
87

@@ -1083,7 +1082,7 @@ def _get_UIALegacyIAccessiblePattern(self):
10831082

10841083
_TextInfo=UIATextInfo
10851084
def _get_TextInfo(self):
1086-
if self.UIATextPattern: return self._TextInfo
1085+
if self.UIATextPattern and self.UIATextPattern.DocumentRange: return self._TextInfo
10871086
textInfo=super(UIA,self).TextInfo
10881087
if textInfo is NVDAObjectTextInfo and self.UIAIsWindowElement and self.role==controlTypes.ROLE_WINDOW:
10891088
import displayModel

0 commit comments

Comments
 (0)