From 469342afaab8a789fe86a90debb7c37ab8212bc4 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Fri, 1 Aug 2008 18:58:47 +0000 Subject: [PATCH] fix for defect #4827 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 1c8379e903..2c659fdd0f 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -4374,7 +4374,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)