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:
@@ -566,7 +566,7 @@ bool wxNotebook::DeleteAllPages()
|
|||||||
|
|
||||||
bool wxNotebook::DeletePage( size_t page )
|
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
|
// the index will become invalid after the page is deleted
|
||||||
m_selection = -1;
|
m_selection = -1;
|
||||||
|
@@ -566,7 +566,7 @@ bool wxNotebook::DeleteAllPages()
|
|||||||
|
|
||||||
bool wxNotebook::DeletePage( size_t page )
|
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
|
// the index will become invalid after the page is deleted
|
||||||
m_selection = -1;
|
m_selection = -1;
|
||||||
|
Reference in New Issue
Block a user