]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
implement wxListBox::EnsureVisible() in wxGTK; add a test for it to the widgets sample
[wxWidgets.git] / src / msw / textctrl.cpp
index 65eeb8967dc47b0a3e9d933753046934f73a66e7..f20fd9c970af6bdbf63b18d5f54fc0c1c49b9228 100644 (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 )
                 {