From f504273c10a7448aabd619175bc1e041458cb1a7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 May 2018 10:29:58 +0100 Subject: ofz#8330 Abrt, fallout from rework to use buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9d4a70d8ae2f5247901c584dc05405665eac065b Reviewed-on: https://gerrit.libreoffice.org/54525 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/mathtype.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath/source') 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); -- cgit