]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug that caused crashes if wxGrid::OnSize was called before grid was properly...
authorMichael Bedward <mbedward@ozemail.com.au>
Tue, 26 Oct 1999 06:52:04 +0000 (06:52 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Tue, 26 Oct 1999 06:52:04 +0000 (06:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 01af2f0d9eb4795cf868264c2bdc4a5f82e6686b..5732bff03afd1cb85a5548d94f6016efbce1b906 100644 (file)
@@ -1262,7 +1262,7 @@ void wxGrid::OnPaint( wxPaintEvent& ev )
 
 void wxGrid::OnSize( wxSizeEvent& ev )
 {
-    CalcDimensions();
+    if ( m_created ) CalcDimensions();
 }