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

fdo#68373 fix three dot -> horizontal ellipsis autocorrection

Change-Id: I9c906c9ab91f604537769db6820aa820d5f637fd
üst ac6a2038
...@@ -2752,7 +2752,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p ...@@ -2752,7 +2752,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
if ( nFndPos != STRING_NOTFOUND ) if ( nFndPos != STRING_NOTFOUND )
{ {
// store matching pattern and its replacement as a new list item, eg. "i18ns" -> "internationalizations" // 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())); SvxAutocorrWord* pNew = new SvxAutocorrWord(OUString(rTxt.GetBuffer() + nFndPos, nEndPos - nFndPos + ((rTxt.GetChar(nEndPos) != 0x20) ? 1: 0)), pFnd->GetLong() + OUString(rTxt.GetBuffer() + nFndPos + sTmp.Len(), nEndPos - nFndPos - sTmp.Len()));
if( Insert( pNew ) ) if( Insert( pNew ) )
{ {
rStt = nFndPos; rStt = nFndPos;
......
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