From e1481385c506c084ecfa09c48e67be1b998b2b41 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 29 Jan 2018 09:49:51 -0800 Subject: [PATCH] Avoid use of uninitialized point size in wxFontInfo See #18070 --- include/wx/font.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/wx/font.h b/include/wx/font.h index 27935bac55..e1a07a2e01 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -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;