summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/node.cxx7
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 += "} ";
}