fix error with compiling with gcc in Linux

This commit is contained in:
qPCR4vir 2016-03-24 03:43:39 +01:00
parent b2b2bf2858
commit c963bb2a3e

View File

@ -569,7 +569,7 @@ namespace nana
if (!is_utf8(text.c_str(), text.length()))
{
utf8_Error(std::string("The text is not encoded in UTF8: ") + text).emit();
text.swap(recode_to_utf8(text));
text=recode_to_utf8(text);
return true; /// it needed change, it needed review !!
}
else