Fix crash again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4093,6 +4093,10 @@ void wxDataViewCtrl::Init()
|
||||
{
|
||||
m_cols.DeleteContents(true);
|
||||
m_notifier = NULL;
|
||||
|
||||
// No sorting column at start
|
||||
m_sortingColumn = NULL;
|
||||
m_headerArea = NULL;
|
||||
}
|
||||
|
||||
bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
@@ -4102,14 +4106,14 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id,
|
||||
if ( (style & wxBORDER_MASK) == 0)
|
||||
style |= wxBORDER_SUNKEN;
|
||||
|
||||
Init();
|
||||
|
||||
if (!wxControl::Create( parent, id, pos, size,
|
||||
style | wxScrolledWindowStyle, validator))
|
||||
return false;
|
||||
|
||||
SetInitialSize(size);
|
||||
|
||||
Init();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
MacSetClipChildren( true );
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user