[Libreoffice-commits] core.git: linguistic/source

László Németh nemeth at numbertext.org
Thu Jan 30 06:24:20 PST 2014


 linguistic/source/dicimp.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit bcfa89158e1ce8cecf9c078ef852225180472a55
Author: László Németh <nemeth at numbertext.org>
Date:   Thu Jan 30 15:19:56 2014 +0100

    fdo#44314 non-standard hyphenation (fix previous commit)
    
    Change-Id: Ib830cf5b57051039106d1f60059fe8a3bdbecf1a

diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 1306253..2e83a06 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);


More information about the Libreoffice-commits mailing list