diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-26 13:38:22 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-26 13:39:32 +0200 |
commit | cd2ba3124602ad9ee8f5927c385936cc5319808d (patch) | |
tree | c56586e79dde7b0c7649c4cb1b538591e3915094 | |
parent | 15e64391aeed35e5c85876650fd8093f20958d8b (diff) |
unbreak calc again
Change-Id: I13e80fc04cb35aff9efbe63cd0096bff5d177ffa
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 77e0774e2c46..76e10acc631f 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2826,7 +2826,8 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p sal_Int32 nSttWdPos = nEndPos; // direct replacement of keywords surrounded by colons (for example, ":name:") - bool bColonNameColon = rTxt[nEndPos] == ':' && rChk[0] == ':' && rChk.endsWith(":"); + bool bColonNameColon = rTxt.getLength() > nEndPos && + rTxt[nEndPos] == ':' && rChk[0] == ':' && rChk.endsWith(":"); if ( nEndPos + (bColonNameColon ? 1 : 0) >= rChk.getLength() - left_wildcard - right_wildcard ) { |