]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
remove redundant WX_CLEAR_LIST, it's done by base dtor
[wxWidgets.git] / src / generic / grid.cpp
index bf95480cac5ba1dcf8d6bf0d9799488b9cbdd5d8..dd23379a8c96188767f1bde5ae332ba8dddc0b87 100644 (file)
@@ -4145,12 +4145,8 @@ wxGrid::wxGrid( wxWindow *parent,
                  const wxSize& size,
                  long style,
                  const wxString& name )
-  : wxScrolledWindow( parent, id, pos, size, (style | wxWANTS_CHARS), name ),
-    m_colMinWidths(GRID_HASH_SIZE),
-    m_rowMinHeights(GRID_HASH_SIZE)
 {
-    Create();
-    SetInitialSize(size);
+    Create(parent, id, pos, size, style, name);
 }
 
 bool wxGrid::Create(wxWindow *parent, wxWindowID id,