For wxTextCtrl editor, set the bold font before margins are set up or it will not work properly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-06-12 10:31:24 +00:00
parent 372d0bdd67
commit bb9da4d3ca
2 changed files with 9 additions and 2 deletions

View File

@@ -1635,8 +1635,8 @@ bool wxPropertyGrid::EnsureVisible( wxPGPropArg id )
// Control font changer helper.
void wxPropertyGrid::SetCurControlBoldFont()
{
wxASSERT( m_wndEditor );
m_wndEditor->SetFont( m_captionFont );
wxWindow* editor = GetEditorControl();
editor->SetFont( m_captionFont );
}
// -----------------------------------------------------------------------