[orca] Be more tolerate of containsRegion() failing if the string is a newline



commit feeb858522fa79babd7f79f60ba75784188e7559
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jul 9 09:09:47 2019 -0400

    Be more tolerate of containsRegion() failing if the string is a newline

 src/orca/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index a39afcbdb..6c95318a8 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4123,7 +4123,7 @@ class Utilities:
             return "", 0, 0
 
         extents = text.getRangeExtents(start, end, coordType)
-        if not self.containsRegion(extents, (x, y, 1, 1)):
+        if not self.containsRegion(extents, (x, y, 1, 1)) and string != "\n":
             return "", 0, 0
 
         return string, start, end


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