compilation warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-25 17:25:04 +00:00
parent b765da9f50
commit 7fc4caa60a
2 changed files with 2 additions and 2 deletions

View File

@@ -566,7 +566,7 @@ bool wxNotebook::DeleteAllPages()
bool wxNotebook::DeletePage( size_t page )
{
if ( m_selection >= page )
if ( m_selection != -1 && (size_t)m_selection >= page )
{
// the index will become invalid after the page is deleted
m_selection = -1;