X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/760be3f7cb386924420a87045af761bbc964f041..3fd7b18a6199f64b5a58e7af50e2870e97430790:/src/generic/grid.cpp?ds=sidebyside diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index bf95480cac..dd23379a8c 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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,