avoid scrolling to cleared-non existing- data, reload before, fixes #13318

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-07-09 06:37:14 +00:00
parent 53d4bdbc15
commit 930d20e710

View File

@@ -2184,9 +2184,9 @@ bool wxCocoaDataViewControl::IsExpanded(const wxDataViewItem& item) const
bool wxCocoaDataViewControl::Reload()
{
[m_DataSource clearBuffers];
[m_OutlineView reloadData];
[m_OutlineView scrollColumnToVisible:0];
[m_OutlineView scrollRowToVisible:0];
[m_OutlineView reloadData];
return true;
}