X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/180a13bf38b7fd0d46ee1879520d6de75a668099..c767a5bbfeb79d3cdd5c2ef222717b656c881e7d:/src/propgrid/propgrid.cpp?ds=inline diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index b8e78f8466..f33e2c7119 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -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();