[orca] Fix infinite recursion generating speech for childless MathML layout elements



commit 7c1c86f6cbcb3044d030f515ccd54bf5e0cab4e4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jul 13 20:35:12 2015 +0200

    Fix infinite recursion generating speech for childless MathML layout elements

 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 b06cea6..0f16fd7 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1906,7 +1906,7 @@ class SpeechGenerator(generator.Generator):
         result = []
         children = [child for child in obj] or [obj]
         for child in children:
-            if self._script.utilities.isMathLayoutOnly(child):
+            if self._script.utilities.isMathLayoutOnly(child) and child.childCount:
                 result.extend(self._generateMath(child))
                 continue
 


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