X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0062c047ecb5a7d4790b980777dfa70869f4834..c11132ca80f6af13bf636abe53f77c8dfd7dab4e:/src/common/datavcmn.cpp diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 75aa10454b..f8f5154fa2 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -26,13 +26,20 @@ const wxChar wxDataViewCtrlNameStr[] = wxT("dataviewCtrl"); +bool operator == (const wxDataViewItem &left, const wxDataViewItem &right) +{ + return (left.GetID() == right.GetID() ); +} + + // --------------------------------------------------------- -// wxDataViewListModel +// wxDataViewModel // --------------------------------------------------------- wxDataViewModel::wxDataViewModel() { m_notifiers.DeleteContents( true ); + m_cmpFunc = NULL; } bool wxDataViewModel::ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item ) @@ -371,6 +378,8 @@ wxDataViewCtrlBase::wxDataViewCtrlBase() m_model = NULL; m_cols.DeleteContents( true ); m_eventNotifier = NULL; + m_expander_column = 0; + m_indent = 8; } wxDataViewCtrlBase::~wxDataViewCtrlBase()