Fix: subtree render for tex

This commit is contained in:
2019-07-11 18:03:49 +02:00
parent cd590c7fe0
commit 63de956a4f
2 changed files with 9 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ def render_with_parenthesis(subtree, operator):
subtree_need_parenthesis = True
except (AttributeError, KeyError):
pass
subtree_ = subtree.__txt__
subtree_ = subtree.__tex__
else:
if OPERATORS[subtree.node]["precedence"] < OPERATORS[operator]["precedence"]:
subtree_need_parenthesis = True