diff options
author | László Németh <nemeth@numbertext.org> | 2014-08-31 14:48:01 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2014-08-31 14:53:55 +0200 |
commit | 10176b1b6f4801d78695451a1eccabf32701e175 (patch) | |
tree | 3dc96a93e80d0d5831067f08903b7955fcd9aeda /editeng | |
parent | 790920befb242d4843d7a933c8a3b7af31d404f9 (diff) |
fdo#33899 autocorrect: don't replace date parts with fractions
Change-Id: I1470d1f3e7b8613c49a4998f3ff106ca5abeff65
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 9aae3350fc13..04e079be92a7 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -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) )) { 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 while( rStt && !(bWasWordDelim = IsWordDelim( rTxt[ --rStt ]))) ; |