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)
|
wxString wxNumberFormatter::ToString(double val, int precision, int style)
|
||||||
{
|
{
|
||||||
const wxString fmt = wxString::Format("%%.%df", precision);
|
wxString s = wxString::FromDouble(val,precision);
|
||||||
wxString s = wxString::Format(fmt, val);
|
|
||||||
|
|
||||||
if ( style & Style_WithThousandsSep )
|
if ( style & Style_WithThousandsSep )
|
||||||
AddThousandsSeparators(s);
|
AddThousandsSeparators(s);
|
||||||
|
Reference in New Issue
Block a user