Override ClearColumns() in wxDataViewListCtrl.

Without this, the associated store's columns would be out of sync,
causing asserts next time a column is appended.

Fixes #14952.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2013-11-21 13:11:35 +00:00
parent d8e58ed8af
commit f53c2ae044
2 changed files with 17 additions and 0 deletions

View File

@@ -972,6 +972,9 @@ public:
void InsertItem( unsigned int row, const wxVector<wxVariant> &values, wxUIntPtr data = 0 );
void DeleteItem( unsigned int pos );
void DeleteAllItems();
#if wxABI_VERSION >= 30001
void ClearColumns();
#endif
unsigned int GetItemCount() const;
@@ -1040,6 +1043,9 @@ public:
virtual bool PrependColumn( wxDataViewColumn *col );
virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
virtual bool AppendColumn( wxDataViewColumn *col );
#if wxABI_VERSION >= 30001
virtual bool ClearColumns();
#endif
wxDataViewColumn *AppendTextColumn( const wxString &label,
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,