X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a05cbc20e3481f38761f6a4abb8d359d92c94b3b..a66bf817a6ba833ad47cefc9fa8948ef8045a59d:/src/common/numformatter.cpp diff --git a/src/common/numformatter.cpp b/src/common/numformatter.cpp index 0c3a6a7a1a..12de60e842 100644 --- a/src/common/numformatter.cpp +++ b/src/common/numformatter.cpp @@ -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);