[orca] Eliminate double-speaking of inferred labels in SayAll



commit 034fc857b477a5e6db31ec4d8dee66250a71b3c1
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jan 3 09:17:50 2017 -0500

    Eliminate double-speaking of inferred labels in SayAll

 src/orca/scripts/web/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 581d25d..fbd644a 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -551,6 +551,9 @@ class Script(default.Script):
                 contents = self.utilities.getLineContentsAtOffset(obj, characterOffset)
             self._sayAllContents = contents
             for content in contents:
+                if self.utilities.isInferredLabelForContents(content, contents):
+                    continue
+
                 obj, startOffset, endOffset, text = content
                 utterances = self.speechGenerator.generateContents([content], eliminatePauses=True)
 


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