It was totally unexpected that construction through the ctor behaved
differently from Create(). Also, the behavior now actually matches
documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65120
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxValidator& validator )
{
Create( parent, id, pos, size, style, validator );
const wxValidator& validator )
{
Create( parent, id, pos, size, style, validator );
-
- wxDataViewListStore *store = new wxDataViewListStore;
- AssociateModel( store );
- store->DecRef();
}
wxDataViewListCtrl::~wxDataViewListCtrl()
}
wxDataViewListCtrl::~wxDataViewListCtrl()
const wxPoint& pos, const wxSize& size, long style,
const wxValidator& validator )
{
const wxPoint& pos, const wxSize& size, long style,
const wxValidator& validator )
{
- return wxDataViewCtrl::Create( parent, id, pos, size, style, validator );
+ if ( !wxDataViewCtrl::Create( parent, id, pos, size, style, validator ) )
+ return false;
+
+ wxDataViewListStore *store = new wxDataViewListStore;
+ AssociateModel( store );
+ store->DecRef();
+
+ return true;
}
bool wxDataViewListCtrl::AppendColumn( wxDataViewColumn *column, const wxString &varianttype )
}
bool wxDataViewListCtrl::AppendColumn( wxDataViewColumn *column, const wxString &varianttype )