]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/notebmac.cpp
added wxListView class: this is going to be a wxListCtrl with human (inter)face
[wxWidgets.git] / src / mac / notebmac.cpp
index ec38c6230c31b0f30ed72405dd06d987b6400843..496c75fe5b4c737872720a0c5131f366465bce9a 100644 (file)
@@ -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 ) ;