From 9657c19785f5cd7039a2d4a118d19f08d198f91e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 5 Sep 2008 11:15:43 +0000 Subject: [PATCH] Fix #9940: wxDataViewCtrl left/right arrow press crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 8ab4f85c53..44eef8c70e 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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 ) {