#if wxUSE_FONTMAP
if ( convertEncoding )
{
+ wxFontEncoding targetEnc = wxFONTENCODING_SYSTEM;
wxFontEncoding enc = wxTheFontMapper->CharsetToEncoding(charset, FALSE);
if ( enc == wxFONTENCODING_SYSTEM )
{
}
else
{
- wxFontEncoding targetEnc = wxLocale::GetSystemEncoding();
+ targetEnc = wxLocale::GetSystemEncoding();
if (targetEnc == wxFONTENCODING_SYSTEM)
{
wxFontEncodingArray a = wxEncodingConverter::GetPlatformEquivalents(enc);
}
if ( !convertEncoding )
- #else // !wxUSE_FONTMAP
+ #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
{
for (size_t i = 0; i < m_numStrings; i++)
{
hash[key] = StringAtOfs(m_pTransTable, i);
}
}
- #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
#endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T
}