Kaydet (Commit) 10176b1b authored tarafından László Németh's avatar László Németh

fdo#33899 autocorrect: don't replace date parts with fractions

Change-Id: I1470d1f3e7b8613c49a4998f3ff106ca5abeff65
üst 790920be
...@@ -2788,7 +2788,12 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p ...@@ -2788,7 +2788,12 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
if( (!left_wildcard && rCmp.isEqual( rChk, sWord )) || (left_wildcard && rCmp.isEqual( rChk.copy(left_wildcard), sWord) )) if( (!left_wildcard && rCmp.isEqual( rChk, sWord )) || (left_wildcard && rCmp.isEqual( rChk.copy(left_wildcard), sWord) ))
{ {
rStt = nCalcStt; rStt = nCalcStt;
if (!left_wildcard) return pFnd; 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;
return pFnd;
}
// get the first word delimiter position before the matching ".*word" pattern // get the first word delimiter position before the matching ".*word" pattern
while( rStt && !(bWasWordDelim = IsWordDelim( rTxt[ --rStt ]))) while( rStt && !(bWasWordDelim = IsWordDelim( rTxt[ --rStt ])))
; ;
......
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