orca r4457 - in trunk: . src/orca



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

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


Modified:
   trunk/ChangeLog
   trunk/src/orca/default.py

Modified: trunk/src/orca/default.py
==============================================================================
--- trunk/src/orca/default.py	(original)
+++ trunk/src/orca/default.py	Thu Jan 22 21:30:59 2009
@@ -2828,7 +2828,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
@@ -2853,7 +2854,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]