Make GetIndexOf() and get_path() work for virtual list models, fixes #12073: wxDataViewCtrl crashes when deleting an item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -543,8 +543,8 @@ void wxDataViewVirtualListModel::RowsDeleted( const wxArrayInt &rows )
|
||||
unsigned int i;
|
||||
for (i = 0; i < sorted.GetCount(); i++)
|
||||
{
|
||||
wxDataViewItem item( wxUIntToPtr(sorted[i]+1) );
|
||||
array.Add( item );
|
||||
wxDataViewItem item( wxUIntToPtr(sorted[i]+1) );
|
||||
array.Add( item );
|
||||
}
|
||||
/* wxDataViewModel:: */ ItemsDeleted( wxDataViewItem(0), array );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user