git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12638
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
{
+ if ( controlpart != kControlNoPart )
+ {
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
event.SetEventObject(this);
ProcessCommand(event);
+ }
}
void wxButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
{
+ if ( controlpart != kControlNoPart )
+ {
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId );
event.SetEventObject(this);
ProcessCommand(event);
+ }
}