]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
[ 1936700 ] wxCAL_SHOW_WEEK_NUMBERS, slightly modified
[wxWidgets.git] / src / xrc / xmlres.cpp
index dfd48835d2e96ca34d09abec2662c97639de591e..c69e3bb24ba2d4fc00a671d3a3202e9c87d42a1c 100644 (file)
@@ -995,6 +995,7 @@ float wxXmlResourceHandler::GetFloat(const wxString& param, float defaultv)
 {
     wxString str = GetParamValue(param);
 
+#if wxUSE_LOCALE
     // 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
@@ -1002,6 +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
 
     double value;
     if (!str.ToDouble(&value))