From 8c18ee8c25f5f63a15be0c4f1d8ef6143b533f1d Mon Sep 17 00:00:00 2001 From: Graham Dawes Date: Wed, 28 Aug 2019 16:09:06 +0100 Subject: [PATCH] Apply font family for wxFont in wxQt Closes https://github.com/wxWidgets/wxWidgets/pull/1512 --- src/qt/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/font.cpp b/src/qt/font.cpp index f9e5b1fd9b..6cfebf895e 100644 --- a/src/qt/font.cpp +++ b/src/qt/font.cpp @@ -563,7 +563,7 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family) { m_qtFont.setStyleHint(ConvertFontFamily(family)); // reset the face name to force qt to choose a new font - m_qtFont.setFamily(""); + m_qtFont.setFamily(m_qtFont.defaultFamily()); } void wxNativeFontInfo::SetEncoding(wxFontEncoding WXUNUSED(encoding))