orca r3453 - trunk/src/orca



Author: joanied
Date: Sun Jan 13 03:21:12 2008
New Revision: 3453
URL: http://svn.gnome.org/viewvc/orca?rev=3453&view=rev

Log:
More work on bug 506360.


Modified:
   trunk/src/orca/Gecko.py

Modified: trunk/src/orca/Gecko.py
==============================================================================
--- trunk/src/orca/Gecko.py	(original)
+++ trunk/src/orca/Gecko.py	Sun Jan 13 03:21:12 2008
@@ -8001,6 +8001,18 @@
             prevObj = prevLine[0][0]
             prevOffset = prevLine[0][1]
 
+        if currentLine == prevLine:
+            # For some reason we're stuck.
+            #
+            #print "find prev line failed"
+            prevObj = self.findPreviousObject(prevObj)
+            prevOffset = 0
+            prevLine = self.getLineContentsAtOffset(prevObj, prevOffset)
+            if currentLine == prevLine:
+                # print "find prev line still stuck"
+                prevObj = self.findPreviousObject(prevObj)
+                prevLine = self.getLineContentsAtOffset(prevObj, prevOffset)
+
         [prevObj, prevOffset] = self.findNextCaretInOrder(prevObj, 
                                                           prevOffset - 1)
 



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