Always reset m_curPage in RemovePage incase the last page has been removed and

the notebook will be empty

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-09-24 18:25:15 +00:00
parent 9aeee9e8fd
commit e2ae339e7b

View File

@@ -3368,9 +3368,9 @@ bool wxAuiNotebook::RemovePage(size_t page_idx)
RemoveEmptyTabFrames();
// set new active pane
m_curpage = -1;
if (new_active && !m_isBeingDeleted)
{
m_curpage = -1;
SetSelection(m_tabs.GetIdxFromWindow(new_active));
}