[Libreoffice-commits] core.git: editeng/source
László Németh
nemeth at numbertext.org
Sat Aug 24 04:38:05 PDT 2013
editeng/source/misc/svxacorr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a248008d08e3adf597e08bede2d58784df48deb6
Author: László Németh <nemeth at numbertext.org>
Date: Sat Aug 24 13:27:48 2013 +0200
fdo#68373 fix three dot -> horizontal ellipsis autocorrection
Change-Id: I9c906c9ab91f604537769db6820aa820d5f637fd
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 043cba5..67a0e9a 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2752,7 +2752,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
if ( nFndPos != STRING_NOTFOUND )
{
// 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 ) )
{
rStt = nFndPos;
More information about the Libreoffice-commits
mailing list