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:
@@ -2184,9 +2184,9 @@ bool wxCocoaDataViewControl::IsExpanded(const wxDataViewItem& item) const
|
|||||||
bool wxCocoaDataViewControl::Reload()
|
bool wxCocoaDataViewControl::Reload()
|
||||||
{
|
{
|
||||||
[m_DataSource clearBuffers];
|
[m_DataSource clearBuffers];
|
||||||
|
[m_OutlineView reloadData];
|
||||||
[m_OutlineView scrollColumnToVisible:0];
|
[m_OutlineView scrollColumnToVisible:0];
|
||||||
[m_OutlineView scrollRowToVisible:0];
|
[m_OutlineView scrollRowToVisible:0];
|
||||||
[m_OutlineView reloadData];
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user