]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid scrolling to cleared-non existing- data, reload before, fixes #13318
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 9 Jul 2011 06:37:14 +0000 (06:37 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 9 Jul 2011 06:37:14 +0000 (06:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/dataview.mm

index f50842e4a5176a34509a4ba0d6850486ae3d90de..148c9b0113fc0beed58e78275feedabb22b07537 100644 (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;
 }