[orca] Fix regression from trying to make off-screen content suck less



commit ed5d995728a7e8ef1b87938632ab5bef246c8355
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon May 13 11:20:45 2019 +0200

    Fix regression from trying to make off-screen content suck less

 src/orca/scripts/web/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index cb8e70050..dd735242a 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1072,7 +1072,7 @@ class Utilities(script_utilities.Utilities):
             return '', 0, 1
 
         if boundary is None:
-            string, start, end = text.getText(offset, -1), offset, text.characterCount
+            string, start, end = text.getText(0, -1), 0, text.characterCount
             s = string.replace(self.EMBEDDED_OBJECT_CHARACTER, "[OBJ]").replace("\n", "\\n")
             msg = "WEB: Results for text at offset %i for %s using %s:\n" \
                   "     String: '%s', Start: %i, End: %i." % (offset, obj, boundary, s, start, end)


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