[orca] Eliminate double-presentation of name resulting from name from contents



commit 4c7bea9161af1a64af2513799e0a9603b7c0f203
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 24 12:07:01 2018 -0700

    Eliminate double-presentation of name resulting from name from contents

 src/orca/scripts/web/speech_generator.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 1cfc372..dee4ead 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -169,6 +169,9 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
            and not self._script.utilities.isDPub(obj):
             return []
 
+        if obj.parent and obj.name == obj.parent.name:
+            return []
+
         # TODO - JD: Once the formatting strings are vastly cleaned up
         # or simply removed, hacks like this won't be needed.
         role = args.get('role', obj.getRole())


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