From 49db7de41163646a351ba2ac2516fc5dc2b72e89 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Tue, 26 Oct 1999 06:52:04 +0000 Subject: [PATCH] Fixed bug that caused crashes if wxGrid::OnSize was called before grid was properly initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 01af2f0d9e..5732bff03a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -1262,7 +1262,7 @@ void wxGrid::OnPaint( wxPaintEvent& ev ) void wxGrid::OnSize( wxSizeEvent& ev ) { - CalcDimensions(); + if ( m_created ) CalcDimensions(); }