git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22240
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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
// 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();