opt: fullindex need not to care about stylesheet

This commit is contained in:
Xiao YiFang 2022-06-11 10:29:21 +08:00
parent 837dcfbf63
commit 058ba392fd

5
mdx.cc
View file

@ -924,10 +924,11 @@ void MdxDictionary::loadArticle( uint32_t offset, string & articleText, bool noF
decompressed.constData() + recordInfo.recordOffset, decompressed.constData() + recordInfo.recordOffset,
recordInfo.recordSize ); recordInfo.recordSize );
article = MdictParser::substituteStylesheet( article, styleSheets );
if( !noFilter ) if( !noFilter )
{
article = MdictParser::substituteStylesheet( article, styleSheets );
article = filterResource( articleId, article ); article = filterResource( articleId, article );
}
articleText = article.toStdString(); articleText = article.toStdString();
} }