[Libreoffice-commits] core.git: starmath/source

Marcos Paulo de Souza marcos.souza.org at gmail.com
Mon Jul 29 01:52:42 PDT 2013


 starmath/source/node.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit a0709e3213a0494df56d56a77c67358fbe1ac5bd
Author: Marcos Paulo de Souza <marcos.souza.org at 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.lunak at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at 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 += "} ";
 }
 
 


More information about the Libreoffice-commits mailing list