diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/node.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 8bd1ca8a9fa8..77a825a596c9 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2060,7 +2060,8 @@ void SmFontNode::CreateTextFromNode(OUString &rText) default: break; } - GetSubNode(1)->CreateTextFromNode(rText); + if(GetNumSubNodes() > 1) + GetSubNode(1)->CreateTextFromNode(rText); } void SmFontNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell) |