X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a881f34e499feadfef915b9d4c80e45a73ba37d4..844cada1622b2923754493a4c8eb91b82232093e:/src/common/datavcmn.cpp diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 850772322c..949ffa233f 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -896,10 +896,11 @@ const wxDataViewModel* wxDataViewCtrlBase::GetModel() const return m_model; } -void wxDataViewCtrlBase::EnsureVisible( const wxDataViewItem & item, - const wxDataViewColumn *WXUNUSED(column) ) +void wxDataViewCtrlBase::ExpandAncestors( const wxDataViewItem & item ) { if (!m_model) return; + + if (!item.IsOk()) return; wxVector parentChain; @@ -919,7 +920,6 @@ void wxDataViewCtrlBase::EnsureVisible( const wxDataViewItem & item, } } - wxDataViewColumn * wxDataViewCtrlBase::AppendTextColumn( const wxString &label, unsigned int model_column, wxDataViewCellMode mode, int width, wxAlignment align, int flags )