diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-13 19:22:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-14 09:52:48 +0200 |
commit | e89350cc1e0b8696ef51251acfb7543fd196ff3a (patch) | |
tree | ebd8198bb8c9b6e5c537fa30e798218f795c4052 /starmath | |
parent | 36839898fadddee155fb73e70d16e1eea4f5f9f0 (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.cxx | 3 |
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) |