]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for defect #4827
authorBenjamin Williams <bwilliams@kirix.com>
Fri, 1 Aug 2008 18:59:21 +0000 (18:59 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Fri, 1 Aug 2008 18:59:21 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibook.cpp

index 59a0f34bc73ad720a2e1bfca7c45f9caa90bea4e..73cea44d66f367419994084fec9416a227545134 100644 (file)
@@ -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)