Don't attempt to do measuring when the window hasn't been created fully yet

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2009-04-17 16:12:00 +00:00
parent 042908a1ac
commit 8d5b63cc44

View File

@ -1038,7 +1038,7 @@ bool wxPropertyGrid::SetFont( const wxFont& font )
ClearSelection(false);
bool res = wxScrolledWindow::SetFont( font );
if ( res )
if ( res && GetParent()) // may not have been Create()ed yet
{
CalculateFontAndBitmapStuff( m_vspacing );
Refresh();