summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2013-08-24 13:27:48 +0200
committerLászló Németh <nemeth@numbertext.org>2013-08-24 13:36:08 +0200
commita248008d08e3adf597e08bede2d58784df48deb6 (patch)
treecbba45376fcc5bb06b179e865fc8e587848291b0 /editeng
parentODF filter: handle draw:shadow-opacity for Writer frames (diff)
downloadcore-a248008d08e3adf597e08bede2d58784df48deb6.tar.gz
core-a248008d08e3adf597e08bede2d58784df48deb6.zip
fdo#68373 fix three dot -> horizontal ellipsis autocorrection
Change-Id: I9c906c9ab91f604537769db6820aa820d5f637fd
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 043cba5494fe..67a0e9a6e795 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;