]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix for wxUSE_INTL==0 (patch 1878908)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Feb 2008 14:12:45 +0000 (14:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Feb 2008 14:12:45 +0000 (14:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 )
                 {