]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgrid.cpp
For wxTextCtrl editor, set the bold font before margins are set up or it will not...
[wxWidgets.git] / src / propgrid / propgrid.cpp
index f734d40507c940274c776eea6c171b99833650e8..6af958bbc4f504802acb2359ae0a0b83a74396ad 100644 (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 );
 }
 
 // -----------------------------------------------------------------------