Kaydet (Commit) bcfa8915 authored tarafından László Németh's avatar László Németh

fdo#44314 non-standard hyphenation (fix previous commit)

Change-Id: Ib830cf5b57051039106d1f60059fe8a3bdbecf1a
üst da5b9bc9
...@@ -608,20 +608,22 @@ int DictionaryNeo::cmpDicEntry(const OUString& rWord1, ...@@ -608,20 +608,22 @@ int DictionaryNeo::cmpDicEntry(const OUString& rWord1,
{ {
if (aWord1[ nIdx1 ] == cIgnBeg) if (aWord1[ nIdx1 ] == cIgnBeg)
IgnState = true; IgnState = true;
if (IgnState || aWord1[ nIdx1++ ] == cIgnChar) if (IgnState || aWord1[ nIdx1 ] == cIgnChar)
nNumIgnChar1++; nNumIgnChar1++;
if (aWord1[ nIdx1] == cIgnEnd) if (aWord1[ nIdx1] == cIgnEnd)
IgnState = false; IgnState = false;
nIdx1++;
} }
IgnState = false; IgnState = false;
while (nIdx2 < nLen2 ) while (nIdx2 < nLen2 )
{ {
if (aWord1[ nIdx2 ] == cIgnBeg) if (aWord2[ nIdx2 ] == cIgnBeg)
IgnState = true; IgnState = true;
if (aWord2[ nIdx2++ ] == cIgnChar) if (IgnState || aWord2[ nIdx2 ] == cIgnChar)
nNumIgnChar2++; nNumIgnChar2++;
if (aWord1[ nIdx1] == cIgnEnd) if (aWord2[ nIdx2 ] == cIgnEnd)
IgnState = false; IgnState = false;
nIdx2++;
} }
nRes = ((sal_Int32) nLen1 - nNumIgnChar1) - ((sal_Int32) nLen2 - nNumIgnChar2); nRes = ((sal_Int32) nLen1 - nNumIgnChar1) - ((sal_Int32) nLen2 - nNumIgnChar2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment