several mac fixes (Mark Newsams patches)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 ) ;
|
||||
|
Reference in New Issue
Block a user