]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
new xml in main tree adaptions
[wxWidgets.git] / src / msw / notebook.cpp
index c09e5fc08507ec85097f549a3a12949f6c2679ff..a69381be92bd3e452da728d6ec0df1bc1aa0b415 100644 (file)
@@ -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
 }