[orca] Only ignore the name as displayed text for document-related table cells in LO



commit 606ab2d499863d97f25a547cc6fcb4f729ec79de
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 3 09:26:04 2014 -0500

    Only ignore the name as displayed text for document-related table cells in LO

 src/orca/scripts/apps/soffice/script_utilities.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script_utilities.py 
b/src/orca/scripts/apps/soffice/script_utilities.py
index 19ff82a..4f65614 100644
--- a/src/orca/scripts/apps/soffice/script_utilities.py
+++ b/src/orca/scripts/apps/soffice/script_utilities.py
@@ -84,7 +84,8 @@ class Utilities(script_utilities.Utilities):
         # TODO - JD: This is needed because the default behavior is to fall
         # back on the name, which is bogus. Once that has been fixed, this
         # hack can go.
-        if role == pyatspi.ROLE_TABLE_CELL and text == obj.name:
+        if role == pyatspi.ROLE_TABLE_CELL and text == obj.name \
+           and (self.isSpreadSheetCell(obj) or self.isDocumentCell(obj)):
             return ""
 
         return text


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