]> git.saurik.com Git - wxWidgets.git/commitdiff
call Create from wxGrid non-default ctor instead to ensure both methods of creation...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 21 Jan 2008 17:18:47 +0000 (17:18 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 21 Jan 2008 17:18:47 +0000 (17:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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,