Skip to content

Commit

Permalink
fix:stardict crash
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jul 24, 2024
1 parent 181ba34 commit 476aac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dict/stardict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz
articleNewText.clear();
}

auto _article = articleText.toStdString();
return std::move( _article );
return articleText.toLocal8Bit().constData();
}
case 'm': // Pure meaning, usually means preformatted text
return "<div class=\"sdct_m\">" + Html::preformat( string( resource, size ), isToLanguageRTL() ) + "</div>";
Expand Down

0 comments on commit 476aac7

Please sign in to comment.