From: Benjamin Williams Date: Fri, 1 Aug 2008 18:59:21 +0000 (+0000) Subject: fix for defect #4827 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b27fdc38328edfc26f6b1b4bf8063bce435580a4 fix for defect #4827 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 59a0f34bc7..73cea44d66 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -4257,7 +4257,7 @@ void wxAuiNotebook::OnTabButton(wxCommandEvent& command_evt) { // if the close button is to the right, use the active // page selection to determine which page to close - selection = GetSelection(); + selection = tabs->GetActivePage(); } if (selection != -1)