diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-19 14:58:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-19 17:45:32 +0200 |
commit | b00dea44c3210901ac70b8ad86fdbac8384837a6 (patch) | |
tree | efb7b987bc8cc7180958dca318e4077d1cf3fcfd /starmath/source | |
parent | c488328fd27a883e730d1eda47c4a4d2c07f3585 (diff) |
ofz#8375 Abrt
Change-Id: I2793ff9512bd651e1446bc9a99e1312164c96b7f
Reviewed-on: https://gerrit.libreoffice.org/54564
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source')
-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 2d25623bdc8b..611ea68d3019 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2723,7 +2723,8 @@ bool MathType::HandleTemplate(int nLevel, sal_uInt8 &rSelector, if (bRemove) { - rRet.remove(rLastTemplateBracket, 1); + if (rLastTemplateBracket < rRet.getLength()) + rRet.remove(rLastTemplateBracket, 1); rRet.append("} "); rLastTemplateBracket = -1; } |