[orca] Be sure we have line text before adding a voice to present it



commit 9c4de37fadf5f0a74f7e7da71badd201d1c5daec
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 29 10:51:54 2013 -0400

    Be sure we have line text before adding a voice to present it

 src/orca/speech_generator.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index b2e0d84..eefd946 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -916,7 +916,7 @@ class SpeechGenerator(generator.Generator):
         """
         acss = self.voice(DEFAULT)
         result = generator.Generator._generateCurrentLineText(self, obj, **args)
-        if result:
+        if result and result[0]:
             result.extend(acss)
         return result
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]