]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notebook.cpp
compilation fixes
[wxWidgets.git] / src / gtk / notebook.cpp
index b7f8177a6f847e578bc990b6a629c28ecc68974a..91114c04914d39bf28355a2912dec3cb80dd30c5 100644 (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;