Restore previous behavior of wxString::operator<<(float)

This commit is contained in:
Paul Cornett
2020-04-22 07:46:06 -07:00
parent ca7760ccb1
commit b256db8f0f

View File

@@ -2027,7 +2027,7 @@ public:
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG #endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
// insert a float into string // insert a float into string
wxString& operator<<(float f) wxString& operator<<(float f)
{ return *this << static_cast<double>(f); } { return *this << Format(wxS("%f"), static_cast<double>(f)); }
// insert a double into string // insert a double into string
wxString& operator<<(double d) wxString& operator<<(double d)
{ return (*this) << Format(wxT("%g"), d); } { return (*this) << Format(wxT("%g"), d); }