mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: mdd resource files spread across multi blocks .
https://github.com/goldendict/goldendict/pull/1400#issuecomment-1008965814
This commit is contained in:
parent
5e817e7d40
commit
b163064f86
|
@ -584,7 +584,7 @@ bool MdictParser::readRecordBlock( MdictParser::HeadWordIndex & headWordIndex,
|
|||
|
||||
for ( HeadWordIndex::const_iterator i = headWordIndex.begin(); i != headWordIndex.end(); ++i )
|
||||
{
|
||||
if ( recordBlockInfos_[idx].endPos <= i->first )
|
||||
if (recordBlockInfos_[idx].shadowEndPos <= i->first)
|
||||
idx = RecordIndex::bsearch( recordBlockInfos_, i->first );
|
||||
|
||||
if ( idx == ( size_t )( -1 ) )
|
||||
|
|
Loading…
Reference in a new issue