[Libreoffice-commits] core.git: editeng/source
Caolán McNamara
caolanm at redhat.com
Mon Oct 6 06:42:40 PDT 2014
editeng/source/misc/svxacorr.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 76b50b7b0d58e73b973b79566e227a22b831fcbb
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 6 14:41:43 2014 +0100
Resolves: fdo#84698 crash in autoreplacement
Change-Id: I44d5dacb21870f77ca993b24f3a31433edb17c6d
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index b4ca129..79d5c39 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2791,7 +2791,8 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
if (!left_wildcard)
{
// fdo#33899 avoid "1/2", "1/3".. to be replaced by fractions in dates, eg. 1/2/14
- if ( rTxt[nEndPos] == '/' && rChk.indexOf( '/' ) != -1 ) return NULL;
+ if (rTxt.getLength() > nEndPos && rTxt[nEndPos] == '/' && rChk.indexOf('/') != -1)
+ return NULL;
return pFnd;
}
// get the first word delimiter position before the matching ".*word" pattern
More information about the Libreoffice-commits
mailing list