]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't attempt to do measuring when the window hasn't been created fully yet
authorJulian Smart <julian@anthemion.co.uk>
Fri, 17 Apr 2009 16:12:00 +0000 (16:12 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 17 Apr 2009 16:12:00 +0000 (16:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index b8e78f8466c3f22b9ee4993a948c12cd5adade03..f33e2c71198ce39bb7da0cbce9a3eebd4e625482 100644 (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();