orca r4458 - in branches/gnome-2-24: . src/orca



Author: wwalker
Date: Thu Jan 22 21:32:46 2009
New Revision: 4458
URL: http://svn.gnome.org/viewvc/orca?rev=4458&view=rev

Log:
Fix for bug #568751 - Interaction with the punctuation preferences can cause a hang


Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/orca/default.py

Modified: branches/gnome-2-24/src/orca/default.py
==============================================================================
--- branches/gnome-2-24/src/orca/default.py	(original)
+++ branches/gnome-2-24/src/orca/default.py	Thu Jan 22 21:32:46 2009
@@ -2821,7 +2821,8 @@
                     newRow = table.getRowAtIndex(index)
                     newCol = table.getColumnAtIndex(index)
 
-                    if (newRow != oldRow) or (oldParent != newParent):
+                    if (newRow >= 0) \
+                       and ((newRow != oldRow) or (oldParent != newParent)):
                         # Get the header information.  In Java Swing, the
                         # information is not exposed via the description
                         # but is instead a header object, so we fall back
@@ -2846,7 +2847,8 @@
                                         + rolenames.rolenames[\
                                         pyatspi.ROLE_ROW_HEADER].speech
                             utterances.append(text)
-                    if (newCol != oldCol) or (oldParent != newParent):
+                    if (newCol >= 0) \
+                       and ((newCol != oldCol) or (oldParent != newParent)):
                         # Don't speak Thunderbird column headers, since
                         # it's not possible to navigate across a row.
                         topName = self.getTopLevelName(newLocusOfFocus)



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