diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 17b7476383..081085cc8e 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -621,7 +621,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) wxNotebookEvent changing(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId, ::GetControl32BitValue(control) - 1, m_nSelection); changing.SetEventObject(this); - ProcessEvent(changing); + GetEventHandler()->ProcessEvent(changing); if(changing.IsAllowed()) { @@ -633,7 +633,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) ::GetControl32BitValue(control) - 1, m_nSelection); event.SetEventObject(this); - ProcessEvent(event); + GetEventHandler()->ProcessEvent(event); } } } diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index 17b7476383..081085cc8e 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -621,7 +621,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) wxNotebookEvent changing(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId, ::GetControl32BitValue(control) - 1, m_nSelection); changing.SetEventObject(this); - ProcessEvent(changing); + GetEventHandler()->ProcessEvent(changing); if(changing.IsAllowed()) { @@ -633,7 +633,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) ::GetControl32BitValue(control) - 1, m_nSelection); event.SetEventObject(this); - ProcessEvent(event); + GetEventHandler()->ProcessEvent(event); } } }