mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-01 01:44:09 +00:00
Revert "fix: mdx headword total count is incorrect"
This reverts commit 66ec6b6d63
.
This commit is contained in:
parent
3e33576c72
commit
1072adfad9
4
mdx.cc
4
mdx.cc
|
@ -1603,8 +1603,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
|
||||||
idxHeader.formatVersion = kCurrentFormatVersion;
|
idxHeader.formatVersion = kCurrentFormatVersion;
|
||||||
idxHeader.parserVersion = MdictParser::kParserVersion;
|
idxHeader.parserVersion = MdictParser::kParserVersion;
|
||||||
idxHeader.foldingVersion = Folding::Version;
|
idxHeader.foldingVersion = Folding::Version;
|
||||||
idxHeader.articleCount = indexedWords.size();
|
idxHeader.articleCount = parser.wordCount();
|
||||||
idxHeader.wordCount = indexedWords.size();
|
idxHeader.wordCount = parser.wordCount();
|
||||||
|
|
||||||
idx.rewind();
|
idx.rewind();
|
||||||
idx.write( &idxHeader, sizeof( idxHeader ) );
|
idx.write( &idxHeader, sizeof( idxHeader ) );
|
||||||
|
|
Loading…
Reference in a new issue