[orca] Fix for bug 666424 - toolkits/gecko/script.py:updateBraille can cause traceback
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 666424 - toolkits/gecko/script.py:updateBraille can cause traceback
- Date: Wed, 22 Feb 2012 18:08:35 +0000 (UTC)
commit bb8def0e93f1c71d86e893bc11a7acedc5dec72d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 22 13:08:04 2012 -0500
Fix for bug 666424 - toolkits/gecko/script.py:updateBraille can cause traceback
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 e697b2c..904b418 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2222,7 +2222,7 @@ class Script(default.Script):
# Add whitespace if we need it. [[[TODO: JD - But should we be
# doing this in the braille generators rather than here??]]]
#
- if len(line.regions) \
+ if regions and len(line.regions) \
and regions[0].string and line.regions[-1].string \
and not regions[0].string[0] in whitespace \
and not line.regions[-1].string[-1] in whitespace:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]