From c87c6166f7c6318367a4d34ecf8ff0c78189c71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 15 May 2018 21:24:34 +0100 Subject: [PATCH] ofz#8327 Abrt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I89f7dd3909cfbe27d7ce41a6bfb51a166fe885bb Reviewed-on: https://gerrit.libreoffice.org/54401 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/mathtype.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; }