X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64b090c72a104a5a9d010b323ba8fe770036c708..5d3a3a5cbcdbe9ad10b808bf65a636e17c734fca:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 5c73f3579e..1c46df3568 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -20,6 +20,10 @@ #pragma implementation "notebook.h" #endif +#ifdef __VMS +#pragma message disable unscomzer +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -157,9 +161,6 @@ int wxNotebook::GetRowCount() const int wxNotebook::SetSelection(size_t nPage) { - if (nPage == -1) - return 0; - wxASSERT( IS_VALID_PAGE(nPage) ); #if defined (__WIN16__) @@ -340,18 +341,18 @@ wxWindow* wxNotebook::DoRemovePage(size_t nPage) { // Only change the selection if the page we // deleted was the selection. - if (nPage == m_nSelection) + if (nPage == (size_t)m_nSelection) { m_nSelection = -1; // Select the first tab. Generates a ChangePage. - m_tabView->SetTabSelection((int) (long) GetPage(0), TRUE); + m_tabView->SetTabSelection(0, TRUE); } else { // We must adjust which tab we think is selected. // If greater than the page we deleted, it must be moved down // a notch. - if (m_nSelection > nPage) + if (size_t(m_nSelection) > nPage) m_nSelection -- ; } }