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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user