From 797c414b40da302aceb51fdecafea56becb9dc67 Mon Sep 17 00:00:00 2001 From: James Teh Date: Mon, 30 Jan 2012 10:39:05 +1000 Subject: [PATCH] NVDAObjects.IAccessible.Groupbox description property: Use simpleNext instead of next, as this skips over the intervening window objects. This has been broken for ages, but everyone somehow missed it. :) --- source/NVDAObjects/IAccessible/__init__.py | 8 ++++---- user_docs/en/changes.t2t | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/NVDAObjects/IAccessible/__init__.py b/source/NVDAObjects/IAccessible/__init__.py index 2a2737a29..08183677a 100644 --- a/source/NVDAObjects/IAccessible/__init__.py +++ b/source/NVDAObjects/IAccessible/__init__.py @@ -1370,14 +1370,14 @@ class NUIDialogClient(Dialog): class Groupbox(IAccessible): def _get_description(self): - next=self.next + next=self.simpleNext if next and next.name==self.name and next.role==controlTypes.ROLE_GRAPHIC: - next=next.next + next=next.simpleNext if next and next.role==controlTypes.ROLE_STATICTEXT: - nextNext=next.next + nextNext=next.simpleNext if nextNext and nextNext.name!=next.name: return next.name - return super(Groupbox,self)._get_description() + return super(Groupbox,self).description class TrayClockWClass(IAccessible): """ diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index 2100feb9a..8475225ae 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -55,6 +55,7 @@ Highlights of this release include features for more fluent reading of braille; - In iTunes, position information in certain lists is now reported correctly. - In Adobe Reader, some links are no longer treated as containing read-only editable text fields. - The labels of some editable text fields are no longer incorrectly included when reporting the text of a dialog. (#1960) +- The description of groupings is once again reported if reporting of object descriptions is enabled. == Changes for Developers == -- 2.11.0