From e2ae339e7bd4d1d40d03e02fb814ffc3841a918e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 24 Sep 2007 18:25:15 +0000 Subject: [PATCH] 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 --- src/aui/auibook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 96f9b24b23..7b222338e1 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -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)); }