[orca/gnome-3-16] If a table reports 0 rows or 0 columns treat it as a "layout table"
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] If a table reports 0 rows or 0 columns treat it as a "layout table"
- Date: Sun, 15 Mar 2015 23:44:38 +0000 (UTC)
commit cba0effc5743a05371b14ec5ecc7d7d92944161e
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]