From 3530c2ff9534a3bb0a19c5764b86850fab5c1f84 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Sep 2015 18:29:06 +0200 Subject: [PATCH] Initialize wxFontRefData::m_sizeUsingPixels in wxMSW Don't leave the variable uninitialized, even though it's not totally obvious which value should it have for wxFontRefData objects created from native fonts, using "true" seems more appropriate and is definitely better than not initializing the field at all. (this is a backport of 2f1e8c540299841e0d7fdd5f4c76de65a9fed5f3 from master) --- src/msw/font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 78786d142d..c70a5dc1d6 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -386,7 +386,8 @@ void wxFontRefData::Init(const wxNativeFontInfo& info, WXHFONT hFont) m_hFont = (HFONT)hFont; m_nativeFontInfo = info; - // TODO: m_sizeUsingPixels? + // size of native fonts is expressed in pixels + m_sizeUsingPixels = true; } wxFontRefData::~wxFontRefData()