From: Václav Slavík <vslavik@fastmail.fm> Date: Mon, 21 Jan 2008 17:18:47 +0000 (+0000) Subject: call Create from wxGrid non-default ctor instead to ensure both methods of creation... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ba808e1178c352621456baeb229847d733142d32 call Create from wxGrid non-default ctor instead to ensure both methods of creation are in sync (they drifted apart already) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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,