Deprecate wxPropertyGrid::DoubleToString().

Simply use wxNumberFormatter instead, this reduces code duplication and avoids
bugs due to formatting inconsistencies in DoubleToString().

Closes #15625.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-01-05 21:10:58 +00:00
parent 419480cf22
commit 353f1c5491
3 changed files with 10 additions and 6 deletions

View File

@@ -62,6 +62,7 @@
#endif
#include "wx/odcombo.h"
#include "wx/numformatter.h"
// -----------------------------------------------------------------------
@@ -361,7 +362,7 @@ bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* proper
// Min/Max check
wxFloatProperty::DoValidation(property, v_d, NULL, mode);
wxPropertyGrid::DoubleToString(s, v_d, 6, true, NULL);
s = wxNumberFormatter::ToString(v_d, -1, wxNumberFormatter::Style_None);
}
else
{