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
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user