Kaydet (Commit) 76b50b7b authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#84698 crash in autoreplacement

Change-Id: I44d5dacb21870f77ca993b24f3a31433edb17c6d
üst 17dd074b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment