diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-07-28 11:57:22 -0300 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-29 08:52:22 +0000 |
commit | a0709e3213a0494df56d56a77c67358fbe1ac5bd (patch) | |
tree | 2936448b70cd19f4349e3fc18c9cb33ecece9675 /starmath/source | |
parent | 57931a7cf76a6f5b323e178d3cade25d98e12096 (diff) |
Fix i#84002 by putting braces when needed
In the case of sqrt with more than 2 operands, like over, we need
to put braces in the beginning and in the end of the element.
Change-Id: I391db14cd2ddc37695fe0b1f590a89b9dd4369ef
Reviewed-on: https://gerrit.libreoffice.org/5153
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/node.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 84571474d349..3f029bb31e8b 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1105,7 +1105,14 @@ void SmRootNode::CreateTextFromNode(OUString &rText) } else rText += "sqrt "; + + if (!pExtra && GetSubNode(2)->GetNumSubNodes() > 1) + rText += "{ "; + GetSubNode(2)->CreateTextFromNode(rText); + + if (!pExtra && GetSubNode(2)->GetNumSubNodes() > 1) + rText += "} "; } |