]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ctrlcmn.cpp
Added distrib file for deprecated classes
[wxWidgets.git] / src / common / ctrlcmn.cpp
index 2ebabc1f0d715a92784f61936f894d6ba3ba5748..d42a8ff04aec1a73d99a483de09f5fb2a2cd24af 100644 (file)
@@ -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)