]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibook.cpp
no 10.4 support anymore
[wxWidgets.git] / src / aui / auibook.cpp
index 36640c3fcccbb025f0cced46a34eebd54dc96557..f299944023979d58ee11b40b54a7ada40cff303e 100644 (file)
@@ -2452,6 +2452,7 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
             button->curState = wxAUI_BUTTON_STATE_HOVER;
             Refresh();
             Update();
+
             m_hoverButton = button;
             return;
         }
@@ -4499,7 +4500,9 @@ bool wxAuiNotebook::SetPageImage(size_t n, int imageId)
 
 wxWindow* wxAuiNotebook::GetCurrentPage () const
 {
-    return GetPage(GetSelection());
+    const int sel = GetSelection();
+
+    return sel == wxNOT_FOUND ? NULL : GetPage(sel);
 }
 
 int wxAuiNotebook::ChangeSelection(size_t n)