[Libreoffice-commits] core.git: editeng/source
László Németh
nemeth at numbertext.org
Tue Jul 29 02:01:56 PDT 2014
editeng/source/misc/svxacorr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 86c0a56a9ee2e3d15286b11afad65568d1a87c11
Author: László Németh <nemeth at numbertext.org>
Date: Tue Jul 29 10:46:53 2014 +0200
fdo#55292 paragr. start. autocorr. with a single character (eg. ---A)
Change-Id: Ic0e67b3e78fe6f38e8a255981c9aa9cfd939fd4b
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 7e2cc7e..3595c23 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2771,7 +2771,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
sal_Int32 left_wildcard = rChk.startsWith( ".*" ) ? 2 : 0; // ".*word" pattern?
sal_Int32 nSttWdPos = nEndPos;
- if( nEndPos >= rChk.getLength() - left_wildcard)
+ if ( nEndPos >= rChk.getLength() - (rChk.endsWith( ".*" ) ? 2 : left_wildcard))
{
bool bWasWordDelim = false;
More information about the Libreoffice-commits
mailing list