git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53145
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxString str = GetParamValue(param);
{
wxString str = GetParamValue(param);
// 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
// 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
// TODO: use wxString::ToCDouble() when we have it
str.Replace(wxT("."), wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT,
wxLOCALE_CAT_NUMBER));
// TODO: use wxString::ToCDouble() when we have it
str.Replace(wxT("."), wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT,
wxLOCALE_CAT_NUMBER));
double value;
if (!str.ToDouble(&value))
double value;
if (!str.ToDouble(&value))