fix compilation for wxUSE_INTL==0 (closes #10614)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-19 23:43:55 +00:00
parent 07f439c78a
commit f5dda646e2

View File

@@ -970,11 +970,13 @@ float wxXmlResourceHandler::GetFloat(const wxString& param, float defaultv)
{ {
wxString str = GetParamValue(param); wxString str = GetParamValue(param);
#if wxUSE_INTL
// strings in XRC always use C locale but wxString::ToDouble() uses the // strings in XRC always use C locale but wxString::ToDouble() uses the
// current one, so transform the string to it supposing that the only // current one, so transform the string to it supposing that the only
// difference between them is the decimal separator // difference between them is the decimal separator
str.Replace(wxT("."), wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, str.Replace(wxT("."), wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT,
wxLOCALE_CAT_NUMBER)); wxLOCALE_CAT_NUMBER));
#endif // wxUSE_INTL
double value; double value;
if (!str.ToDouble(&value)) if (!str.ToDouble(&value))