[orca] When Gecko reports the end offset is -1, use the characterCount instead
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] When Gecko reports the end offset is -1, use the characterCount instead
- Date: Sun, 6 Jan 2013 16:36:10 +0000 (UTC)
commit e74bb21c97ac4e54e54a62588a795b6b6f01e529
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Jan 6 11:35:17 2013 -0500
When Gecko reports the end offset is -1, use the characterCount instead
.../scripts/toolkits/Gecko/script_utilities.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 4559c36..5492ab2 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -533,6 +533,8 @@ class Utilities(script_utilities.Utilities):
if boundary:
[string, start, end] = \
text.getTextAfterOffset(offset, boundary)
+ if end == -1:
+ end = text.characterCount
else:
start = offset
end = text.characterCount
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]