mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
the headword length is not correct
due to the parse of the headword length , the last headword has incorrect data length ,which has cross over many headwords. the string(constData) will ignore the other headwords coming behind the \0 character.
This commit is contained in:
parent
7bcdfac334
commit
01a8995504
3
mdx.cc
3
mdx.cc
|
@ -949,7 +949,8 @@ void MdxDictionary::loadArticle( uint32_t offset, string & articleText, bool noF
|
|||
article = filterResource( articleId, article );
|
||||
}
|
||||
|
||||
articleText = article.toStdString();
|
||||
// articleText = article.toStdString();
|
||||
articleText = string( article.toUtf8().constData() );
|
||||
}
|
||||
|
||||
QString & MdxDictionary::filterResource( QString const & articleId, QString & article )
|
||||
|
|
Loading…
Reference in a new issue