diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 516e0a6a7c..cf96614eef 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -908,15 +908,6 @@ static wxCharacterSet *wxGetCharacterSet(const wxChar *name) cset = NULL; } -#if wxUSE_FONTMAP - cset = new EC_CharSet(name); - if ( cset->usable() ) - return cset; - - delete cset; - cset = NULL; -#endif // wxUSE_FONTMAP - #if defined(__WIN32__) && !defined(__WXMICROWIN__) cset = new CP_CharSet(name); if ( cset->usable() ) @@ -926,6 +917,15 @@ static wxCharacterSet *wxGetCharacterSet(const wxChar *name) cset = NULL; #endif // __WIN32__ +#if wxUSE_FONTMAP + cset = new EC_CharSet(name); + if ( cset->usable() ) + return cset; + + delete cset; + cset = NULL; +#endif // wxUSE_FONTMAP + wxLogError(_("Cannot convert from encoding '%s'!"), name); return NULL;