[orca] Ensure we have a wordString before attempting to speak it
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we have a wordString before attempting to speak it
- Date: Sun, 29 Apr 2018 01:27:21 +0000 (UTC)
commit 28eabbd64242ddc675a4171826a634630accdbaa
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Apr 28 21:26:09 2018 -0400
Ensure we have a wordString before attempting to speak it
src/orca/scripts/default.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 5890095..5d0b1ce 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -1741,7 +1741,8 @@ class Script(script.Script):
while True:
[wordString, x, y, width, height] = context.getCurrent(flat_review.Context.ZONE)
- speech.speak(wordString)
+ if wordString is not None:
+ speech.speak(wordString)
moved = context.goNext(flat_review.Context.ZONE, flat_review.Context.WRAP_LINE)
if not moved:
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]