Applied patch [ 774886 ] wxnotebook bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-07-22 16:47:33 +00:00
parent 16dc3e3df6
commit 68d31398dd

View File

@@ -424,7 +424,8 @@ wxNotebookPage *wxNotebook::DoRemovePage(int nPage)
// for some unknown reason if the tab control shows the up-down
// control (i.e. when there are too many pages) -- otherwise after
// deleting a page nothing at all is shown
m_pages[m_nSelection]->Refresh();
if (m_nSelection >= 0)
m_pages[m_nSelection]->Refresh();
}
if ( selNew != -1 )