]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - src/com/hughes/android/dictionary/engine/IndexBuilder.java
Synonyms, antonyms.
[DictionaryPC.git] / src / com / hughes / android / dictionary / engine / IndexBuilder.java
index 9fe234b7c7723c80ec11c02446a3bbdde84cd3a3..8e99341dc22432398893b54f690c902e699f02dc 100644 (file)
@@ -54,7 +54,7 @@ public class IndexBuilder {
       
       TokenRow tokenRow = null;
       if (!tokenData.htmlEntries.isEmpty()) {
-          tokenRow = new TokenRow(indexIndex, rows.size(), index, /* hasMainEntry */ true);
+          tokenRow = new TokenRow(indexIndex, rows.size(), index, tokenData.hasMainEntry);
           rows.add(tokenRow);
       }
       
@@ -77,7 +77,7 @@ public class IndexBuilder {
             indexedEntry.entry.addToDictionary(dictionaryBuilder.dictionary);
             assert indexedEntry.entry.index() >= 0;
           }
-          if (tokenIndexedEntries.add(indexedEntry)) {
+          if (tokenIndexedEntries.add(indexedEntry) && !tokenData.htmlEntries.contains(indexedEntry.entry)) {
             rows.add(indexedEntry.entry.CreateRow(rows.size(), index));
             ++indexedEntry.entry.entrySource.numEntries;
             ++numRows;