diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 62f9cf23a9..d337152711 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -2790,8 +2790,7 @@ void wxFrameManager::OnFloatingPaneActivated(wxWindow* wnd) if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE) { // try to find the pane - wxPaneInfo& pane = GetPane(wnd); - wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found")); + wxASSERT_MSG(GetPane(wnd).IsOk(), wxT("Pane window not found")); SetActivePane(m_panes, wnd); Repaint();