Avoid use of uninitialized point size in wxFontInfo

See #18070
This commit is contained in:
Paul Cornett
2018-01-29 09:49:51 -08:00
parent 72790218cb
commit e1481385c5

View File

@@ -209,10 +209,9 @@ public:
// Default copy ctor, assignment operator and dtor are OK.
private:
// Common part of all ctor, initializing everything except the size (which
// is initialized by the ctors themselves).
void Init()
{
m_pointSize = -1;
m_family = wxFONTFAMILY_DEFAULT;
m_flags = wxFONTFLAG_DEFAULT;
m_encoding = wxFONTENCODING_DEFAULT;