[orca] Work on Bug 633104 - I see three performance related problem with Mozilla Thunderbird and Orca



commit ffecc80db3ddf2d1139cd0690b471f70a73c75ed
Author: Michael Whapples <mwhapples aim com>
Date:   Mon Nov 29 08:39:03 2010 -0500

    Work on Bug 633104 - I see three performance related problem with Mozilla Thunderbird and Orca

 src/orca/speech_generator.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index db2a33f..6db1554 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1625,7 +1625,9 @@ class SpeechGenerator(generator.Generator):
         specifications) that represent the relative position of an
         object in a list.
         """
-        if settings.onlySpeakDisplayedText:
+        if settings.onlySpeakDisplayedText \
+           or not (settings.enablePositionSpeaking \
+                   or args.get('forceList', False)):
             return []
 
         result = []
@@ -1695,9 +1697,7 @@ class SpeechGenerator(generator.Generator):
                 if nextName == name:
                     position = index
 
-        if (settings.enablePositionSpeaking \
-            or args.get('forceList', False)) \
-           and position >= 0:
+        if position >= 0:
             result.append(self._script.formatting.getString(
                               mode='speech',
                               stringType='groupindex') \



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