mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Merge pull request #1699 from xiaoyifang/fix/stardict-crash
fix: stardict crash
This commit is contained in:
commit
3299596746
|
@ -545,7 +545,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz
|
|||
articleNewText.clear();
|
||||
}
|
||||
|
||||
return ( articleText.toUtf8().data() );
|
||||
return articleText.toStdString();
|
||||
}
|
||||
case 'm': // Pure meaning, usually means preformatted text
|
||||
return "<div class=\"sdct_m\">" + Html::preformat( string( resource, size ), isToLanguageRTL() ) + "</div>";
|
||||
|
|
Loading…
Reference in a new issue