From b163064f86dec3912c95e3a34340fbc1086b24e0 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Mon, 10 Jan 2022 23:42:27 +0800 Subject: [PATCH] fix: mdd resource files spread across multi blocks . https://github.com/goldendict/goldendict/pull/1400#issuecomment-1008965814 --- mdictparser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdictparser.cc b/mdictparser.cc index 48869b46..ca044e70 100644 --- a/mdictparser.cc +++ b/mdictparser.cc @@ -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 ) )