Kaydet (Commit) a0709e32 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Luboš Luňák

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/5153Reviewed-by: 's avatarLuboš Luňák <l.lunak@suse.cz>
Tested-by: 's avatarLuboš Luňák <l.lunak@suse.cz>
üst 57931a7c
...@@ -1105,7 +1105,14 @@ void SmRootNode::CreateTextFromNode(OUString &rText) ...@@ -1105,7 +1105,14 @@ void SmRootNode::CreateTextFromNode(OUString &rText)
} }
else else
rText += "sqrt "; rText += "sqrt ";
if (!pExtra && GetSubNode(2)->GetNumSubNodes() > 1)
rText += "{ ";
GetSubNode(2)->CreateTextFromNode(rText); GetSubNode(2)->CreateTextFromNode(rText);
if (!pExtra && GetSubNode(2)->GetNumSubNodes() > 1)
rText += "} ";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment