editeng/source/misc/svxacorr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6616e1e4eb1505effbd0a5920dade781bd7938db Author: László Németh <nem...@numbertext.org> Date: Wed Aug 21 13:25:35 2013 +0200 fdo#68373 fix comments Change-Id: Id65e819fd1172a28b2cb0bafbd7763313c5fcf50 diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 8022973..adfad58 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2726,7 +2726,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p return pFnd; } } - // match "word*" pattern + // match "word*" patterns, eg. "i18n*" if ( rChk.GetChar( rChk.Len() - 1) == C_ASTERISK ) { String sTmp( rChk.Copy( 0, rChk.Len() - 1 ) ); @@ -2737,7 +2737,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p } while ( nFndPos != STRING_NOTFOUND && !(!nFndPos || IsWordDelim( rTxt.GetChar( nFndPos - 1 )))); if ( nFndPos != STRING_NOTFOUND ) { - // store matching pattern and its replacement as a new list item, eg. "wordi" -> "wordy" + // store matching pattern and its replacement as a new list item, eg. "i18ns" -> "internationalizations" SvxAutocorrWord* pNew = new SvxAutocorrWord(OUString(rTxt.GetBuffer() + nFndPos, nEndPos - nFndPos), pFnd->GetLong() + OUString(rTxt.GetBuffer() + nFndPos + sTmp.Len(), nEndPos - nFndPos - sTmp.Len())); if( Insert( pNew ) ) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits