mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
fix: stardict crash with access_read_violation
This commit is contained in:
parent
06d4b62b67
commit
9858455035
|
@ -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>";
|
||||||
|
|
Loading…
Reference in a new issue