fixed bold font setting in wxGenericTreeCtrl to account for font face and encoding

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-11-12 23:27:54 +00:00
parent a228573797
commit 2877ca7efe

View File

@@ -766,7 +766,9 @@ void wxGenericTreeCtrl::Init()
m_normalFont.GetFamily(),
m_normalFont.GetStyle(),
wxBOLD,
m_normalFont.GetUnderlined());
m_normalFont.GetUnderlined(),
m_normalFont.GetFaceName(),
m_normalFont.GetEncoding());
}
bool wxGenericTreeCtrl::Create(wxWindow *parent,
@@ -1011,7 +1013,9 @@ bool wxGenericTreeCtrl::SetFont( const wxFont &font )
m_normalFont.GetFamily(),
m_normalFont.GetStyle(),
wxBOLD,
m_normalFont.GetUnderlined());
m_normalFont.GetUnderlined(),
m_normalFont.GetFaceName(),
m_normalFont.GetEncoding());
return TRUE;
}