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:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user