[orca/gnome-3-14] Work around another case of dead LibreOffice accessible objects



commit 0536a897349a7e4238a37a28ea7d69ff76428950
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 9 13:02:00 2015 -0500

    Work around another case of dead LibreOffice accessible objects

 src/orca/scripts/apps/soffice/script_utilities.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script_utilities.py 
b/src/orca/scripts/apps/soffice/script_utilities.py
index 3409e73..0e3508f 100644
--- a/src/orca/scripts/apps/soffice/script_utilities.py
+++ b/src/orca/scripts/apps/soffice/script_utilities.py
@@ -83,7 +83,10 @@ class Utilities(script_utilities.Utilities):
             if text.strip():
                 return text
 
-        text = script_utilities.Utilities.displayedText(self, obj)
+        try:
+            text = script_utilities.Utilities.displayedText(self, obj)
+        except:
+            return ""
 
         # 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


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