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
This commit is contained in:
Michael Bedward 1999-10-26 06:52:04 +00:00
parent afbdc52a1b
commit 49db7de411

View File

@ -1262,7 +1262,7 @@ void wxGrid::OnPaint( wxPaintEvent& ev )
void wxGrid::OnSize( wxSizeEvent& ev )
{
CalcDimensions();
if ( m_created ) CalcDimensions();
}