X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92b0a2a13ccaaa23a97964ff35cdaf39dd44a104..673e6120795e4e1f3a49157581925a5ee14bf5a9:/src/common/ctrlcmn.cpp?ds=sidebyside diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 2ebabc1f0d..d42a8ff04a 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -6,7 +6,7 @@ // Created: 26.07.99 // RCS-ID: $Id$ // Copyright: (c) wxWindows team -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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)