From b256db8f0f84c88f9ea37f56e04154e6985b328a Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 22 Apr 2020 07:46:06 -0700 Subject: [PATCH] Restore previous behavior of wxString::operator<<(float) --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index f6bc9e1377..418dd0d704 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2027,7 +2027,7 @@ public: #endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG // insert a float into string wxString& operator<<(float f) - { return *this << static_cast(f); } + { return *this << Format(wxS("%f"), static_cast(f)); } // insert a double into string wxString& operator<<(double d) { return (*this) << Format(wxT("%g"), d); }