X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ef585df0c08670ac9a208d827b69375fac72ebb..491b5be8305968871bc289453ed088a70c3de044:/src/mac/notebmac.cpp diff --git a/src/mac/notebmac.cpp b/src/mac/notebmac.cpp index ec38c6230c..496c75fe5b 100644 --- a/src/mac/notebmac.cpp +++ b/src/mac/notebmac.cpp @@ -149,7 +149,8 @@ void wxNotebook::SetPageSize(const wxSize& size) int wxNotebook::SetSelection(int nPage) { - wxASSERT( IS_VALID_PAGE(nPage) ); + if( !IS_VALID_PAGE(nPage) ) + return m_nSelection ; ChangePage(m_nSelection, nPage); SetControlValue( m_macControl , m_nSelection + 1 ) ;