]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectrl.cpp
unused parameter warnings suppressed
[wxWidgets.git] / src / generic / treectrl.cpp
index 65f6406654aa38e2b7d571fd07639667a5426b48..21f04410553a5c68acb4e52316fc2326a81a079d 100644 (file)
@@ -950,7 +950,7 @@ void wxTreeCtrl::Collapse(const wxTreeItemId& itemId)
   wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_COLLAPSING, GetId() );
   event.m_item = item;
   event.SetEventObject( this );
-  if ( ProcessEvent( event ) && event.m_code )
+  if ( ProcessEvent( event ) && !event.IsAllowed() )
   {
     // cancelled by program
     return;