[orca] Don't adjust character offset when it's the character count
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't adjust character offset when it's the character count
- Date: Sat, 18 Feb 2017 16:47:45 +0000 (UTC)
commit e92fd36b71b777e100e69189a8a8ed80d2ae8939
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Feb 18 11:46:21 2017 -0500
Don't adjust character offset when it's the character count
It causes us to repeat the previous line's content
src/orca/scripts/web/script_utilities.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 8b9f317..239509d 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1246,8 +1246,6 @@ class Utilities(script_utilities.Utilities):
return []
text = self.queryNonEmptyText(obj)
- if text and offset == text.characterCount:
- offset -= 1
offset = max(0, offset)
if useCache:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]