diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index c1d4c9c2c135..4eab25b87c15 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -1254,7 +1254,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector, if (bOk) rRet.append("} "); - else + else if (rRet.getLength() > nSizeStartPos) rRet = rRet.truncate(nSizeStartPos); nSetSize--; nCurSize=nOldCurSize; @@ -1379,7 +1379,7 @@ bool MathType::HandleRecords(int nLevel, sal_uInt8 nSelector, if (bOk) rRet.append("} "); - else + else if (rRet.getLength() > nSubSupStartPos) rRet = rRet.truncate(nSubSupStartPos); nPart++; }