[orca] If a table reports 0 rows or 0 columns treat it as a "layout table"



commit 3626600faf81488dd1fc4e8e3486379fa70a5625
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Mar 15 19:40:22 2015 -0400

    If a table reports 0 rows or 0 columns treat it as a "layout table"

 src/orca/script_utilities.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 21883e0..a797017 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -716,11 +716,10 @@ class Utilities:
             except:
                 layoutOnly = True
             else:
-                if not (obj.name or self.displayedLabel(obj)):
-                    if not (table.nRows and table.nColumns):
-                        layoutOnly = True
-                    else:
-                        layoutOnly = not (table.getColumnHeader(0) or table.getRowHeader(0))
+                if not (table.nRows and table.nColumns):
+                    layoutOnly = True
+                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 obj[0].getRole() == pyatspi.ROLE_TABLE_CELL:
                 layoutOnly = True


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