summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-13 19:22:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-14 09:52:48 +0200
commite89350cc1e0b8696ef51251acfb7543fd196ff3a (patch)
treeebd8198bb8c9b6e5c537fa30e798218f795c4052 /starmath
parent36839898fadddee155fb73e70d16e1eea4f5f9f0 (diff)
ofz#8252 fallout from rework as OUStringBuffer
Change-Id: Ide3732627eb145e191061608ac0325df0fcceff0 Reviewed-on: https://gerrit.libreoffice.org/54198 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathtype.cxx3
1 files changed, 2 insertions, 1 deletions
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)