build fix for wxUSE_INTL==0 (patch 1878908)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-02-03 14:12:45 +00:00
parent c1841ac2e3
commit beee6bf864

View File

@ -784,10 +784,12 @@ wxString wxTextCtrl::GetRange(long from, long to) const
encoding = font.GetEncoding();
}
#if wxUSE_INTL
if ( encoding == wxFONTENCODING_SYSTEM )
{
encoding = wxLocale::GetSystemEncoding();
}
#endif // wxUSE_INTL
if ( encoding == wxFONTENCODING_SYSTEM )
{