Merge pull request #1699 from xiaoyifang/fix/stardict-crash

fix: stardict crash
This commit is contained in:
xiaoyifang 2024-07-19 17:40:43 +08:00 committed by GitHub
commit 3299596746
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,7 +545,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz
articleNewText.clear(); articleNewText.clear();
} }
return ( articleText.toUtf8().data() ); return articleText.toStdString();
} }
case 'm': // Pure meaning, usually means preformatted text case 'm': // Pure meaning, usually means preformatted text
return "<div class=\"sdct_m\">" + Html::preformat( string( resource, size ), isToLanguageRTL() ) + "</div>"; return "<div class=\"sdct_m\">" + Html::preformat( string( resource, size ), isToLanguageRTL() ) + "</div>";