There was still a bug searching. One more fixed.
authorviric@llimona
Wed, 08 Aug 2007 23:09:44 +0200
changeset 35 d5425eaec624
parent 34 df357119fa7e
child 36 9d677f961a96
There was still a bug searching. One more fixed.
src/jdict/DictIndex.java
--- a/src/jdict/DictIndex.java	Tue Aug 07 21:28:54 2007 +0200
+++ b/src/jdict/DictIndex.java	Wed Aug 08 23:09:44 2007 +0200
@@ -385,7 +385,7 @@
                 continue;
             }
             int comparision = word.compareTo(test);
-            /*System.out.println("Comparing to " + test);*/
+            System.out.println("Comparing to " + test);
             if (comparision <= 0)
             {
                 /* If == 0, then we don't know that it is the
@@ -417,9 +417,9 @@
                 System.out.println("Seek from start error");
                 return results;
             }
+            readUntilNewLine();
         }
 
-        readUntilNewLine();
 
         /* Add the prefixes */
         SearchNextPrefixes(results, word, 49); /* Max 50 prefixes. Match+nexts*/