use common bottleneck
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user