[orca] Handle overlapping offsets in splitSubstringByLanguage
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle overlapping offsets in splitSubstringByLanguage
- Date: Fri, 7 Jan 2022 09:35:22 +0000 (UTC)
commit 82d3687c6779afe2b69333ee4a27a629f9346bc7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jan 7 10:34:17 2022 +0100
Handle overlapping offsets in splitSubstringByLanguage
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 ad5037d6b..79083b9d9 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -961,7 +961,7 @@ class Utilities(script_utilities.Utilities):
rv = []
allSubstrings = self.getLanguageAndDialectForObject(obj)
for startOffset, endOffset, language, dialect in allSubstrings:
- if start > endOffset:
+ if start >= endOffset:
continue
if end <= startOffset:
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]