[orca] Fix Say All bug for Gecko content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix Say All bug for Gecko content
- Date: Fri, 15 May 2015 16:29:35 +0000 (UTC)
commit ec7c509136cc53e45b68e8e63a19d1684b334e2e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri May 15 12:27:33 2015 -0400
Fix Say All bug for Gecko content
src/orca/scripts/toolkits/Gecko/script.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index a1523ae..dce94c9 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -732,7 +732,11 @@ class Script(default.Script):
sayAllStyle = _settingsManager.getSetting('sayAllStyle')
sayAllBySentence = sayAllStyle == settings.SAYALL_STYLE_SENTENCE
if offset == None:
- [obj, characterOffset] = self.getCaretContext()
+ contextObj, contextOffset = self.getCaretContext()
+ if contextObj:
+ [obj, characterOffset] = contextObj, contextOffset
+ else:
+ characterOffset = 0
else:
characterOffset = offset
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]