[orca] Don't treat tree tables cells as layout only, even if they contain child cells



commit f4a263d6f6c5422a08888cd84c3bae4cf7ad6454
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Feb 20 17:04:38 2016 -0500

    Don't treat tree tables cells as layout only, even if they contain child cells

 src/orca/script_utilities.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 3e904e2..04671ce 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1147,7 +1147,9 @@ class Utilities:
                 elif not (obj.name or self.displayedLabel(obj)):
                     layoutOnly = not (table.getColumnHeader(0) or table.getRowHeader(0))
         elif role == pyatspi.ROLE_TABLE_CELL and obj.childCount:
-            if firstChild.getRole() == pyatspi.ROLE_TABLE_CELL:
+            if parentRole == pyatspi.ROLE_TREE_TABLE:
+                layoutOnly = False
+            elif firstChild.getRole() == pyatspi.ROLE_TABLE_CELL:
                 layoutOnly = True
             elif parentRole == pyatspi.ROLE_TABLE:
                 layoutOnly = self.isLayoutOnly(obj.parent)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]