diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-18 10:29:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-18 16:20:46 +0200 |
commit | f504273c10a7448aabd619175bc1e041458cb1a7 (patch) | |
tree | 4b0ecd7d4e2ef29ea4ad12c607f2e23a6c0eb714 /starmath | |
parent | c8e50e5d407eb0957d8b49683dd45d50d715929a (diff) |
ofz#8330 Abrt, fallout from rework to use buffer
Change-Id: I9d4a70d8ae2f5247901c584dc05405665eac065b
Reviewed-on: https://gerrit.libreoffice.org/54525
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 | 2 |
1 files changed, 1 insertions, 1 deletions
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); |