[orca] Do explicit null check for text boundary



commit 71decff3b5da4ad089e89e91e3864c2e5b3a2e69
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 24 11:53:44 2018 -0500

    Do explicit null check for text boundary

 src/orca/scripts/web/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index e47a69e..dfbb8e4 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -960,7 +960,7 @@ class Utilities(script_utilities.Utilities):
             debug.println(debug.LEVEL_INFO, msg, True)
             return string, start, end
 
-        if not boundary:
+        if boundary is None:
             string, start, end = text.getText(offset, -1), offset, 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" \


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