font inheritance fixes (patch 983251)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -168,7 +168,8 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
|
||||
|
||||
// set up fonts and colours
|
||||
InheritAttributes();
|
||||
SetFont(GetDefaultAttributes().font);
|
||||
if (!m_hasFont)
|
||||
SetFont(GetDefaultAttributes().font);
|
||||
|
||||
// set the size now if no initial size specified
|
||||
SetInitialBestSize(size);
|
||||
|
Reference in New Issue
Block a user