From 0564ae939d13dba5d072826fc677da493a5e0a8c Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Thu, 3 Dec 2009 18:19:31 +0000 Subject: [PATCH] Exit wxPropertyGrid::RecalculateVirtualSize() immediately if it was called before the grid state was initialized. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgrid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 498bfc4e2d..9a9da1c396 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4186,7 +4186,9 @@ bool wxPropertyGrid::DoHideProperty( wxPGProperty* p, bool hide, int flags ) void wxPropertyGrid::RecalculateVirtualSize( int forceXPos ) { - if ( (m_iFlags & wxPG_FL_RECALCULATING_VIRTUAL_SIZE) || m_frozen ) + if ( (m_iFlags & wxPG_FL_RECALCULATING_VIRTUAL_SIZE) || + m_frozen || + !m_pState ) return; // -- 2.50.0