X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc10daf37cbfc1620543d8128ed265b374240501..a1a816f8ccbcdd119aa17bcdcd7094d6bf1ceee0:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index c09e5fc085..a69381be92 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -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 ) @@ -827,6 +828,9 @@ void wxNotebook::ApplyThemeBackground(wxWindow* window, const wxColour& colour) wxWindow *child = node->GetData(); ApplyThemeBackground(child, colour); } +#else + window; + colour; #endif }