X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5aed9d5067d3d828018e3e4a873cd2a450beea84..920b9675d9e4ae7f721bd6eeb85c184a74434f7b:/src/mac/notebmac.cpp diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index 88a922f993..e620bc017b 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -96,7 +96,7 @@ static inline int wxMacTabMargin(long nbStyle, long side) // but we have to special case wxNB_TOP since it is zero... if ( side == wxNB_TOP) { - if ( nbStyle != 0 && nbStyle & wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM) + if ( nbStyle != 0 && nbStyle & (wxNB_LEFT|wxNB_RIGHT|wxNB_BOTTOM)) { return otherMargin; } @@ -202,7 +202,7 @@ wxNotebook::~wxNotebook() m_macControl = NULL ; } -wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) +wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const { wxSize sizeTotal = sizePage; @@ -614,7 +614,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()) { @@ -626,7 +626,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) ::GetControl32BitValue(control) - 1, m_nSelection); event.SetEventObject(this); - ProcessEvent(event); + GetEventHandler()->ProcessEvent(event); } } }