From: Benjamin Williams Date: Thu, 2 Nov 2006 10:45:48 +0000 (+0000) Subject: proper indentation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/528a5e8f92e938407ee2c33b29e519af064e6608 proper indentation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 7f9d92afa4..98e77ae3e9 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -2161,28 +2161,30 @@ void wxAuiManager::Update() p.window->SetSize(1,1); - // the following block is a workaround for bug #1531361 - // (see wxWidgets sourceforge page). On wxGTK (only), when - // a frame is shown/hidden, a move event unfortunately - // also gets fired. Because we may be dragging around - // a pane, we need to cancel that action here to prevent - // a spurious crash. - if (m_action_window == p.frame) - { - if (wxWindow::GetCapture() == m_frame) + // the following block is a workaround for bug #1531361 + // (see wxWidgets sourceforge page). On wxGTK (only), when + // a frame is shown/hidden, a move event unfortunately + // also gets fired. Because we may be dragging around + // a pane, we need to cancel that action here to prevent + // a spurious crash. + if (m_action_window == p.frame) + { + if (wxWindow::GetCapture() == m_frame) m_frame->ReleaseMouse(); m_action = actionNone; - m_action_window = NULL; - } + m_action_window = NULL; + } - // hide the frame + // hide the frame if (p.frame->IsShown()) p.frame->Show(false); // reparent to m_frame and destroy the pane - if(m_action_window == p.frame) { + if(m_action_window == p.frame) + { m_action_window = NULL; } + p.window->Reparent(m_frame); p.frame->SetSizer(NULL); p.frame->Destroy();