diff options
author | László Németh <nemeth@numbertext.org> | 2014-01-30 15:19:56 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2014-01-30 15:22:33 +0100 |
commit | bcfa89158e1ce8cecf9c078ef852225180472a55 (patch) | |
tree | 0508e8d1b919705c8a89d6b6ffd9c6b4f3fd0acd /linguistic | |
parent | da5b9bc95c32bd233595a28bd276f8ed1f4fc859 (diff) |
fdo#44314 non-standard hyphenation (fix previous commit)
Change-Id: Ib830cf5b57051039106d1f60059fe8a3bdbecf1a
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 1306253e0596..2e83a06ad66c 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -608,20 +608,22 @@ int DictionaryNeo::cmpDicEntry(const OUString& rWord1, { if (aWord1[ nIdx1 ] == cIgnBeg) IgnState = true; - if (IgnState || aWord1[ nIdx1++ ] == cIgnChar) + if (IgnState || aWord1[ nIdx1 ] == cIgnChar) nNumIgnChar1++; if (aWord1[ nIdx1] == cIgnEnd) IgnState = false; + nIdx1++; } IgnState = false; while (nIdx2 < nLen2 ) { - if (aWord1[ nIdx2 ] == cIgnBeg) + if (aWord2[ nIdx2 ] == cIgnBeg) IgnState = true; - if (aWord2[ nIdx2++ ] == cIgnChar) + if (IgnState || aWord2[ nIdx2 ] == cIgnChar) nNumIgnChar2++; - if (aWord1[ nIdx1] == cIgnEnd) + if (aWord2[ nIdx2 ] == cIgnEnd) IgnState = false; + nIdx2++; } nRes = ((sal_Int32) nLen1 - nNumIgnChar1) - ((sal_Int32) nLen2 - nNumIgnChar2); |