summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-18 10:29:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-18 16:20:46 +0200
commitf504273c10a7448aabd619175bc1e041458cb1a7 (patch)
tree4b0ecd7d4e2ef29ea4ad12c607f2e23a6c0eb714 /starmath
parentc8e50e5d407eb0957d8b49683dd45d50d715929a (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.cxx2
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);