starmath/source/node.cxx | 7 +++++++ 1 file changed, 7 insertions(+) New commits: commit a0709e3213a0494df56d56a77c67358fbe1ac5bd Author: Marcos Paulo de Souza <marcos.souza....@gmail.com> Date: Sun Jul 28 11:57:22 2013 -0300
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.lu...@suse.cz> Tested-by: LuboÅ¡ LuÅák <l.lu...@suse.cz> diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 8457147..3f029bb 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 += "} "; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits