starmath/source/mathtype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f504273c10a7448aabd619175bc1e041458cb1a7 Author: Caolán McNamara <caol...@redhat.com> Date: Fri May 18 10:29:58 2018 +0100 ofz#8330 Abrt, fallout from rework to use buffer Change-Id: I9d4a70d8ae2f5247901c584dc05405665eac065b Reviewed-on: https://gerrit.libreoffice.org/54525 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 4eab25b87c15..2d25623bdc8b 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -2895,7 +2895,7 @@ bool MathType::HandleChar(sal_Int32 &rTextStart, int &rSetSize, int nLevel, OUString aStr; TypeFaceToString(aStr,nOldTypeFace); aStr += "\""; - rRet.insert(rTextStart, aStr); + rRet.insert(std::min(rTextStart, rRet.getLength()), aStr); aStr.clear(); TypeFaceToString(aStr,nTypeFace); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits