getting out for 'addded' events early enough
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1269,6 +1269,12 @@ void wxMacListCtrlItem::Notification(wxMacDataItemBrowserControl *owner ,
|
||||
delete this;
|
||||
return;
|
||||
}
|
||||
else if ( message == kDataBrowserItemAdded )
|
||||
{
|
||||
// we don't issue events on adding, the item is not really stored in the list yet, so we
|
||||
// avoid asserts by gettting out now
|
||||
return ;
|
||||
}
|
||||
|
||||
wxListCtrl *list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
|
||||
if ( list ){
|
||||
|
Reference in New Issue
Block a user