orca r3439 - in trunk: . src/orca



Author: joanied
Date: Thu Jan 10 15:14:55 2008
New Revision: 3439
URL: http://svn.gnome.org/viewvc/orca?rev=3439&view=rev

Log:
* src/orca/Gecko.py: 
  More work on bug #500016 - Reading web pages by line in Firefox
  3 is slow.



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

Modified: trunk/src/orca/Gecko.py
==============================================================================
--- trunk/src/orca/Gecko.py	(original)
+++ trunk/src/orca/Gecko.py	Thu Jan 10 15:14:55 2008
@@ -7147,8 +7147,7 @@
         singleLine = False
         if text:
             line = text.getTextAtOffset(offset, boundary)
-            characterCount = text.characterCount
-            singleLine = (line[1] == 0) and (line[2] == characterCount)
+            singleLine = (line[1] == 0) and (line[2] == text.characterCount)
             if line[2] < offset:
                 index = self.getChildIndex(obj, line[1])
                 if index >= 0:
@@ -7159,7 +7158,8 @@
                     child = obj[index]
                     text = self.queryNonEmptyText(child)
                     if text:
-                        line = text.getTextAtOffset(characterCount, boundary)
+                        line = text.getTextAtOffset(text.characterCount, 
+                                                    boundary)
                         obj = child
                         offset = line[1]
             else:



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