nhold / wxWidgets

Read-only mirror of the wxWidgets SVN repo (automatically updated). Report issues here: http://trac.wxwidgets.org/
http://www.wxwidgets.org/
1 stars 3 forks source link

SetActivePane is reentrant #131

Closed Kinaou closed 8 years ago

Kinaou commented 9 years ago

SetActivePane() calls SetFocus() (through wxAuiTabContainer::SetActivePage()) on the window to activate, triggering wxAuiManager::OnChildFocus() which calls anew SetActivePane() on the same pane, whereas the previous operation is not completed.

To avoid that, the flag wxAuiPaneInfo::optionActive should be set to the pane being activated, before setting the focus on its window in wxAuiTabContainer::SetActivePage().

Patch coming soon.