From ba808e1178c352621456baeb229847d733142d32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 21 Jan 2008 17:18:47 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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, -- 2.47.2