Added Bil Simser to wxBook page; fixed bug in notebook when deleting pages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -314,6 +314,9 @@ bool wxNotebook::DeletePage(int nPage)
|
||||
// no selection if the notebook became empty
|
||||
m_nSelection = -1;
|
||||
}
|
||||
else
|
||||
m_nSelection = TabCtrl_GetCurSel(m_hwnd);
|
||||
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -329,6 +332,8 @@ bool wxNotebook::RemovePage(int nPage)
|
||||
|
||||
if ( m_aPages.IsEmpty() )
|
||||
m_nSelection = -1;
|
||||
else
|
||||
m_nSelection = TabCtrl_GetCurSel(m_hwnd);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user