Skip to content

Commit 2cbbd1d

Browse files
Merge 8f469a5 into a154cfa
2 parents a154cfa + 8f469a5 commit 2cbbd1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/NVDAObjects/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,14 +918,17 @@ def _get_presentationType(self):
918918
controlTypes.Role.PANEL,
919919
controlTypes.Role.PROPERTYPAGE,
920920
controlTypes.Role.TEXTFRAME,
921-
controlTypes.Role.GROUPING,
922921
controlTypes.Role.OPTIONPANE,
923922
controlTypes.Role.INTERNALFRAME,
924923
controlTypes.Role.FORM,
925924
controlTypes.Role.TABLEBODY,
926925
controlTypes.Role.REGION,
927926
):
928927
return self.presType_layout
928+
# Groupings should only be considered layout (I.e. filtered out)
929+
# if they also don't have any position information as well as no name or description.
930+
if role == controlTypes.Role.GROUPING and not self.name and not self.description and not self.positionInfo:
931+
return self.presType_layout
929932
if role == controlTypes.Role.TABLE and not config.conf["documentFormatting"]["reportTables"]:
930933
return self.presType_layout
931934
if role in (controlTypes.Role.TABLEROW,controlTypes.Role.TABLECOLUMN,controlTypes.Role.TABLECELL) and (not config.conf["documentFormatting"]["reportTables"] or not config.conf["documentFormatting"]["reportTableCellCoords"]):

0 commit comments

Comments
 (0)