From a23717e5069bd06c8134240e02889c424cd293f4 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 5 May 2007 19:43:02 +0000 Subject: [PATCH] Apply [ 1712381 ] CRASH: closing floating panel on GTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/floatpane.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 952cbfd345..c2c0147106 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -159,8 +159,10 @@ void wxAuiFloatingFrame::OnSize(wxSizeEvent& event) void wxAuiFloatingFrame::OnClose(wxCloseEvent& evt) { m_owner_mgr->OnFloatingPaneClosed(m_pane_window, evt); - if (!evt.GetVeto()) + if (!evt.GetVeto()) { + m_mgr.DetachPane(m_pane_window); Destroy(); + } } void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event) -- 2.47.2