editeng/source/misc/svxacorr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a248008d08e3adf597e08bede2d58784df48deb6
Author: László Németh <nem...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to