diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 65eeb8967d..f20fd9c970 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -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 ) {