bool IC_CharSet::ms_wcNeedsSwap = FALSE;
IC_CharSet::IC_CharSet(const wxChar *name)
- : wxCharacterSet(name)
{
// Do it the hard way
char cname[100];
// check for the special case of ASCII charset
if ( (!name && encoding == wxFONTENCODING_DEFAULT)
#if wxUSE_FONTMAP
- || wxFontMapper::Get()->
- CharsetToEncoding(name) == wxFONTENCODING_DEFAULT
+ || (name && wxFontMapper::Get()->
+ CharsetToEncoding(name) == wxFONTENCODING_DEFAULT)
#endif // wxUSE_FONTMAP
)
{