Restore previous behavior of wxString::operator<<(float)
This commit is contained in:
@@ -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); }
|
||||||
|
Reference in New Issue
Block a user