Apply [ 1712381 ] CRASH: closing floating panel on GTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-05-05 19:43:02 +00:00
parent 7edab35128
commit c307c6dfd4

View File

@@ -159,8 +159,10 @@ void wxAuiFloatingFrame::OnSize(wxSizeEvent& event)
void wxAuiFloatingFrame::OnClose(wxCloseEvent& evt) void wxAuiFloatingFrame::OnClose(wxCloseEvent& evt)
{ {
m_owner_mgr->OnFloatingPaneClosed(m_pane_window, evt); m_owner_mgr->OnFloatingPaneClosed(m_pane_window, evt);
if (!evt.GetVeto()) if (!evt.GetVeto()) {
m_mgr.DetachPane(m_pane_window);
Destroy(); Destroy();
}
} }
void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event) void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event)