diff options
author | jghali <jghali@11d20701-8431-0410-a711-e3c959e3b870> | 2012-04-20 20:40:31 +0000 |
---|---|---|
committer | jghali <jghali@11d20701-8431-0410-a711-e3c959e3b870> | 2012-04-20 20:40:31 +0000 |
commit | 0af0fb146639f14b984a0dc9686f695c1e13b353 (patch) | |
tree | 461084d9f5b17f4880002ecab73bb159c1b7578b /scribus/plugins | |
parent | d16f57ed50dad2ddd0203078e8e3853c57181e47 (diff) | |
download | scribus-0af0fb146639f14b984a0dc9686f695c1e13b353.tar.gz scribus-0af0fb146639f14b984a0dc9686f695c1e13b353.tar.xz scribus-0af0fb146639f14b984a0dc9686f695c1e13b353.zip |
fix for spell check plugin on win32 : hunspell requires strings to be encoded in UTF-8
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17463 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/plugins')
-rw-r--r-- | scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp index 7af6181..f5550ee 100644 --- a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp +++ b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp @@ -157,12 +157,12 @@ bool HunspellPluginImpl::parseTextFrame(PageItem *frameToCheck) ++wordCount; ++wordNo; QStringList replacements; - if (hspellers[0]->spell(word.toLocal8Bit().constData())==0) + if (hspellers[0]->spell(word.toUtf8().constData())==0) { // qDebug()<<word; ++errorCount; char **sugglist = NULL; - int suggCount=hspellers[0]->suggest(&sugglist, word.toLocal8Bit().constData()); + int suggCount=hspellers[0]->suggest(&sugglist, word.toUtf8().constData()); for (int j=0; j < suggCount; ++j) { // qDebug()<<"Suggestion "<<j<<":"<<sugglist[j]; |