Revert "fix: mdx headword total count is incorrect"

This reverts commit 66ec6b6d63.
This commit is contained in:
Xiao YiFang 2023-02-05 13:45:48 +08:00
parent 3e33576c72
commit 1072adfad9

4
mdx.cc
View file

@ -1603,8 +1603,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
idxHeader.formatVersion = kCurrentFormatVersion;
idxHeader.parserVersion = MdictParser::kParserVersion;
idxHeader.foldingVersion = Folding::Version;
idxHeader.articleCount = indexedWords.size();
idxHeader.wordCount = indexedWords.size();
idxHeader.articleCount = parser.wordCount();
idxHeader.wordCount = parser.wordCount();
idx.rewind();
idx.write( &idxHeader, sizeof( idxHeader ) );