summaryrefslogtreecommitdiffstats
path: root/scribus/plugins
diff options
context:
space:
mode:
authorjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-04-20 21:07:47 +0000
committerjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-04-20 21:07:47 +0000
commit58ee1c7316aef3194df7e081ead745bb42084b47 (patch)
treedde6f335be760dea015106337d11062aef4ec4c2 /scribus/plugins
parent0af0fb146639f14b984a0dc9686f695c1e13b353 (diff)
downloadscribus-58ee1c7316aef3194df7e081ead745bb42084b47.tar.gz
scribus-58ee1c7316aef3194df7e081ead745bb42084b47.tar.xz
scribus-58ee1c7316aef3194df7e081ead745bb42084b47.zip
another fix for spellchecker : suggestions are returned as UTF-8 strings, convert them properly to QString using QString::fromUtf8()
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17464 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/plugins')
-rw-r--r--scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
index f5550ee..1b169e7 100644
--- a/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
+++ b/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
@@ -166,7 +166,7 @@ bool HunspellPluginImpl::parseTextFrame(PageItem *frameToCheck)
for (int j=0; j < suggCount; ++j)
{
// qDebug()<<"Suggestion "<<j<<":"<<sugglist[j];
- replacements<<sugglist[j];
+ replacements << QString::fromUtf8(sugglist[j]);
}
hspellers[0]->free_list(&sugglist, suggCount);