diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index fc467898b6..7ed60c54fd 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -750,10 +750,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 ) {