summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/node.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 68282d0951b7..220e30d2ffc9 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -608,8 +608,10 @@ class SmRootSymbolNode : public SmMathSymbolNode
public:
SmRootSymbolNode(const SmToken &rNodeToken)
- : SmMathSymbolNode(NROOTSYMBOL, rNodeToken)
- {}
+ : SmMathSymbolNode(NROOTSYMBOL, rNodeToken)
+ , nBodyWidth(0)
+ {
+ }
sal_uLong GetBodyWidth() const {return nBodyWidth;};
virtual void AdaptToX(const OutputDevice &rDev, sal_uLong nHeight) SAL_OVERRIDE;