fix for bug #1747890 - close button problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
288b6107e1
commit
94473fa8e4
@ -3694,6 +3694,13 @@ void wxAuiNotebook::OnTabButton(wxCommandEvent& command_evt)
|
||||
{
|
||||
int selection = evt.GetSelection();
|
||||
|
||||
if (selection == -1)
|
||||
{
|
||||
// if the close button is to the right, use the active
|
||||
// page selection to determine which page to close
|
||||
selection = GetSelection();
|
||||
}
|
||||
|
||||
if (selection != -1)
|
||||
{
|
||||
wxWindow* close_wnd = tabs->GetWindowFromIdx(selection);
|
||||
|
Loading…
Reference in New Issue
Block a user