From 5c475284a2f878f72449fa1e5517052c4e804758 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 15 Jun 2013 14:45:17 +0000 Subject: [PATCH] use common bottleneck git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/numformatter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.50.0