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
This commit is contained in:
Václav Slavík
2008-01-21 17:18:47 +00:00
parent 760be3f7cb
commit ba808e1178

View 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,