fix: stardict crash with access_read_violation

This commit is contained in:
Xiao Yi Fang 2024-07-19 13:55:06 +08:00 committed by xiaoyifang
parent 06d4b62b67
commit 9858455035

View file

@ -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>";