From: David Webster Date: Mon, 5 Aug 2002 03:13:59 +0000 (+0000) Subject: Font fix for OS/2 common control creation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/344e7ee2c5b49182733af84d8cd8b09cc11569f0 Font fix for OS/2 common control creation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 2ebabc1f0d..c13f4dcc0c 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -100,7 +100,14 @@ void wxControlBase::InheritAttributes() SetForegroundColour(GetParent()->GetForegroundColour()); #endif // 0 +#ifdef __WXPM__ + // + // All OS/2 ctrls use the small font + // + SetFont(*wxSMALL_FONT); +#else SetFont(GetParent()->GetFont()); +#endif } void wxControlBase::Command(wxCommandEvent& event)