orca r3751 - in branches/gnome-2-22: . src/orca



Author: joanied
Date: Tue Mar 25 16:59:13 2008
New Revision: 3751
URL: http://svn.gnome.org/viewvc/orca?rev=3751&view=rev

Log:
* src/orca/Gecko.py:
  Fix for bug #519478 - (ff3) missing text with line down navigation
  (www.fixedearth.com)


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/orca/Gecko.py

Modified: branches/gnome-2-22/src/orca/Gecko.py
==============================================================================
--- branches/gnome-2-22/src/orca/Gecko.py	(original)
+++ branches/gnome-2-22/src/orca/Gecko.py	Tue Mar 25 16:59:13 2008
@@ -7755,6 +7755,15 @@
                     else:
                         [line, start, end] = \
                                text.getTextAfterOffset(start + 1, boundary)
+            elif offset > end and start < end:
+                # Line break characters might be messing us up. If the
+                # difference is 1, then we're moving down and want the
+                # text that comes after this offset.  Otherwise, we're
+                # moving up and want the text that comes after the end.
+                # 
+                if offset - end > 1:
+                    offset = end + 1
+                [line, start, end] = text.getTextAfterOffset(end + 1, boundary)
 
         if text:
             offset = start



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