r25062 by craig - Add in missing codec conversion
scribus-commit
scribus-commit at lists.scribus.net
Thu Mar 24 22:02:17 UTC 2022
Author: craig
Date: Thu Mar 24 22:02:17 2022
New Revision: 25062
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=25062
Log:
Add in missing codec conversion
Modified:
trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
Modified: trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=25062&path=/trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp (original)
+++ trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldict.cpp Thu Mar 24 22:02:17 2022
@@ -49,7 +49,7 @@
QStringList replacements;
if (!m_hunspell)
return replacements;
- std::string s = word.toStdString();
+ std::string s = m_codec->fromUnicode(word).toStdString();
std::vector<std::string> sugglist = m_hunspell->suggest(s);
replacements.reserve(sugglist.size());
for (uint i = 0; i < sugglist.size(); ++i)
More information about the scribus-commit
mailing list