[orca] Don't treat elements with embedded objects as lines of single chars
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't treat elements with embedded objects as lines of single chars
- Date: Tue, 30 Jul 2019 19:45:50 +0000 (UTC)
commit 749ebb3d69981cb38fa1a513426d101c640496e9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jul 30 15:44:02 2019 -0400
Don't treat elements with embedded objects as lines of single chars
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 9aec65280..99dfa813a 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2726,7 +2726,7 @@ class Utilities(script_utilities.Utilities):
boundary = pyatspi.TEXT_BOUNDARY_LINE_START
for i in range(nChars):
string, start, end = text.getTextAtOffset(i, boundary)
- if len(string) > 1:
+ if len(string) > 1 or string == self.EMBEDDED_OBJECT_CHARACTER:
rv = False
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]