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



commit 43c83e1be6d606622142f8f065b1ea1f41b4d286
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 4b33c07..bc3d412 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]