Skip to content

Commit adc1a38

Browse files
Update source/compoundDocuments.py
Co-authored-by: Sean Budd <sean@nvaccess.org>
1 parent 7e0e9e6 commit adc1a38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/compoundDocuments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _getControlFieldForObject(self, obj, ignoreEditableText=True):
142142
return None
143143
role = obj.role
144144
states = obj.states
145-
if role == controlTypes.Role.LINK and controlTypes.STATE_LINKED not in states:
145+
if role == controlTypes.Role.LINK and controlTypes.State.LINKED not in states:
146146
# Named link destination, not a link that can be activated.
147147
return None
148148
field = textInfos.ControlField()

0 commit comments

Comments
 (0)