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
This commit is contained in:
Benjamin Williams
2008-08-01 18:58:47 +00:00
parent c8dfe1e82b
commit 469342afaa

View File

@@ -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)