[Libreoffice-commits] core.git: starmath/source
Caolán McNamara
caolanm at redhat.com
Mon May 14 07:53:08 UTC 2018
starmath/source/mathtype.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e89350cc1e0b8696ef51251acfb7543fd196ff3a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun May 13 19:22:05 2018 +0100
ofz#8252 fallout from rework as OUStringBuffer
Change-Id: Ide3732627eb145e191061608ac0325df0fcceff0
Reviewed-on: https://gerrit.libreoffice.org/54198
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 1a6f319314ea..c1d4c9c2c135 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2646,7 +2646,8 @@ bool MathType::HandlePile(int &rSetAlign, int nLevel, sal_uInt8 nSelector, sal_u
rRet.append(" stack {\n");
bool bRet = HandleRecords( nLevel+1, nSelector, nVariation, -1, -1 );
- rRet.remove(rRet.getLength()-3, 2);
+ int nRemoveFrom = rRet.getLength() >= 3 ? rRet.getLength() - 3 : 0;
+ rRet.remove(nRemoveFrom, 2);
rRet.append("} ");
while (rSetAlign)
More information about the Libreoffice-commits
mailing list