Partially reverted last changes because of problems under wxMotif
authorMichael Bedward <mbedward@ozemail.com.au>
Wed, 9 Feb 2000 05:12:01 +0000 (05:12 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Wed, 9 Feb 2000 05:12:01 +0000 (05:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 82eef22b3b40ede78a487310c32eb56a0ba4ff68..c931804e3efa805096c5ee1fc3e38c52ded1e00f 100644 (file)
@@ -1129,10 +1129,6 @@ void wxGrid::Init()
 
 void wxGrid::CalcDimensions()
 {
-    // This avoids a crash in SetScrollbars
-    //
-    if ( !m_displayed ) return;
-    
     int cw, ch;
     GetClientSize( &cw, &ch );