]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix #9940: wxDataViewCtrl left/right arrow press crash
authorRobert Roebling <robert@roebling.de>
Fri, 5 Sep 2008 11:15:43 +0000 (11:15 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 5 Sep 2008 11:15:43 +0000 (11:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index 8ab4f85c53765b875efcbed747cdf53ff60095a7..44eef8c70e70d2412640f42d15b1d8cfa5f275e0 100644 (file)
@@ -3274,6 +3274,9 @@ wxDataViewEvent wxDataViewMainWindow::SendExpanderEvent( wxEventType type, const
 
 void wxDataViewMainWindow::OnExpanding( unsigned int row )
 {
+    if (IsVirtualList())
+       return;
+
     wxDataViewTreeNode * node = GetTreeNodeByRow(row);
     if( node != NULL )
     {
@@ -3313,6 +3316,9 @@ void wxDataViewMainWindow::OnExpanding( unsigned int row )
 
 void wxDataViewMainWindow::OnCollapsing(unsigned int row)
 {
+    if (IsVirtualList())
+       return;
+       
     wxDataViewTreeNode * node = GetTreeNodeByRow(row);
     if( node != NULL )
     {