[orca] Don't adjust the start offset for a word that starts with an embedded object



commit 607ef8a4ae7f538f867aaf6ad52bef8a9e5e1aa5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Aug 6 17:14:31 2014 -0400

    Don't adjust the start offset for a word that starts with an embedded object
    
    It can cause looping within content.

 src/orca/scripts/toolkits/Gecko/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 8e2dae5..4758115 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3146,7 +3146,8 @@ class Script(default.Script):
         text = self.utilities.queryNonEmptyText(obj)
         if text:
             word = text.getTextAtOffset(characterOffset, boundary)
-            if word[1] < characterOffset <= word[2]:
+            if word[1] < characterOffset <= word[2] \
+               and not word[0].startswith(self.EMBEDDED_OBJECT_CHARACTER):
                 characterOffset = word[1]
 
         contents = self.utilities.getObjectsFromEOCs(obj, characterOffset, boundary)


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