orca r3732 - in trunk: . src/orca/scripts



Author: richb
Date: Thu Mar 20 17:15:57 2008
New Revision: 3732
URL: http://svn.gnome.org/viewvc/orca?rev=3732&view=rev

Log:
        * src/orca/scripts/StarOffice.py:
          From Joanmarie Diggs <joanmarie diggs gmail com>
          Work on bug #523459 - oocalc/bug_356334.py regression tests #1 
          through #4 produce the wrong results. This patch fixes up the
          numerous bogus "not selected" differences in several oocalc
          regression tests.


Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/StarOffice.py

Modified: trunk/src/orca/scripts/StarOffice.py
==============================================================================
--- trunk/src/orca/scripts/StarOffice.py	(original)
+++ trunk/src/orca/scripts/StarOffice.py	Thu Mar 20 17:15:57 2008
@@ -73,6 +73,9 @@
             C. otherwise, the full contents of the cell
         """
 
+        if not self._script.isSpreadSheetCell(obj):
+            return where_am_I.WhereAmI._speakTableCell(self, obj, basicOnly)
+
         utterances = []
         utterances.append(_("cell"))
 
@@ -1264,7 +1267,8 @@
                 # really try to avoid doing this kind of thing, but sometimes
                 # it is necessary and we apologize.
                 #
-                if current.getRole() == pyatspi.ROLE_FRAME and \
+                if current.getRole() in [pyatspi.ROLE_FRAME,
+                                         pyatspi.ROLE_ROOT_PANE] and \
                    (current.name and current.name.endswith(_("Calc"))):
                     found = True
                 current = current.parent



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