[orca] Fix for bgo#591336 - Need a sanity check in Gecko's searchForCaretLocation
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#591336 - Need a sanity check in Gecko's searchForCaretLocation
- Date: Mon, 10 Aug 2009 14:51:11 +0000 (UTC)
commit 9b76d0236ba781fd1dc1310782623ddc66518d1c
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Mon Aug 10 10:43:42 2009 -0400
Fix for bgo#591336 - Need a sanity check in Gecko's searchForCaretLocation
src/orca/scripts/toolkits/Gecko/script.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 67367eb..4a05481 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5307,7 +5307,7 @@ class Script(default.Script):
else:
context = [acc, offset]
childIndex = self.getChildIndex(acc, offset)
- if childIndex >= 0:
+ if childIndex >= 0 and acc.childCount:
acc = acc[childIndex]
else:
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]