]> git.saurik.com Git - wxWidgets.git/commitdiff
replaced test for inexistent wxUSE_LOCALE with the correct wxUSE_INTL
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 3 May 2008 15:33:28 +0000 (15:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 3 May 2008 15:33:28 +0000 (15:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xmlres.cpp

index c69e3bb24ba2d4fc00a671d3a3202e9c87d42a1c..4eed81980c663688405da8ec356a9a4fdd0fd851 100644 (file)
@@ -995,7 +995,7 @@ float wxXmlResourceHandler::GetFloat(const wxString& param, float defaultv)
 {
     wxString str = GetParamValue(param);
 
-#if wxUSE_LOCALE
+#if wxUSE_INTL
     // strings in XRC always use C locale but wxString::ToDouble() uses the
     // current one, so transform the string to it supposing that the only
     // difference between them is the decimal separator
@@ -1003,7 +1003,7 @@ float wxXmlResourceHandler::GetFloat(const wxString& param, float defaultv)
     // TODO: use wxString::ToCDouble() when we have it
     str.Replace(wxT("."), wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT,
                                             wxLOCALE_CAT_NUMBER));
-#endif // wxUSE_LOCALE
+#endif // wxUSE_INTL
 
     double value;
     if (!str.ToDouble(&value))