summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2014-07-29 10:46:53 +0200
committerLászló Németh <nemeth@numbertext.org>2014-07-29 10:53:00 +0200
commit86c0a56a9ee2e3d15286b11afad65568d1a87c11 (patch)
tree1295cc98dd5428f15dd419f645b6c5c0a6d727d0
parentc61d0c6071e97b31701c26d512699355c4aac986 (diff)
fdo#55292 paragr. start. autocorr. with a single character (eg. ---A)
Change-Id: Ic0e67b3e78fe6f38e8a255981c9aa9cfd939fd4b
-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 7e2cc7efc933..3595c23044dd 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;