r17464 by jghali - another fix for spellchecker : suggestions are returned as UTF-8 strings, convert them properly to QString using QString::fromUtf8()

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 20 21:07:48 UTC 2012


Author: jghali
Date: Fri Apr 20 21:07:47 2012
New Revision: 17464

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17464
Log:
another fix for spellchecker : suggestions are returned as UTF-8 strings, convert them properly to QString using QString::fromUtf8()

Modified:
    branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp

Modified: branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17464&path=/branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/tools/hunspellcheck/hunspellpluginimpl.cpp Fri Apr 20 21:07:47 2012
@@ -166,7 +166,7 @@
 			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);
 




More information about the scribus-commit mailing list