[orca] Be more tolerate of containsRegion() failing if the string is a newline
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be more tolerate of containsRegion() failing if the string is a newline
- Date: Tue, 9 Jul 2019 13:11:43 +0000 (UTC)
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]