]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/numformatter.cpp
Compilation fix for r74440 and STL builds.
[wxWidgets.git] / src / common / numformatter.cpp
index 0c3a6a7a1ab6c5a1ea635fead91c94e870bbdc86..12de60e842ec82ef1457051a0eccb4e4530dcd77 100644 (file)
@@ -210,8 +210,7 @@ wxString wxNumberFormatter::ToString(wxLongLong_t val, int style)
 
 wxString wxNumberFormatter::ToString(double val, int precision, int style)
 {
-    const wxString fmt = wxString::Format("%%.%df", precision);
-    wxString s = wxString::Format(fmt, val);
+    wxString s = wxString::FromDouble(val,precision);
 
     if ( style & Style_WithThousandsSep )
         AddThousandsSeparators(s);