[orca/gnome-2-28] Fix for bgo#593520 - The Gecko script's getBottomOfFile needs to be more efficient



commit 9fc5ed13c3025b3bd775d44b67f35980582a19ca
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sat Aug 29 21:46:56 2009 -0400

    Fix for bgo#593520 - The Gecko script's getBottomOfFile needs to be more efficient

 src/orca/scripts/toolkits/Gecko/script.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index cc6a2c9..8825b10 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3836,6 +3836,12 @@ class Script(default.Script):
          document frame."""
 
         documentFrame = self.getDocumentFrame()
+        text = self.queryNonEmptyText(documentFrame)
+        if text:
+            char = text.getText(text.characterCount - 1, text.characterCount)
+            if char != self.EMBEDDED_OBJECT_CHARACTER:
+                return [documentFrame, text.characterCount - 1]
+
         obj = self.getLastObject(documentFrame)
         offset = 0
 



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