make sure client area is refreshed after last child frame is closed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2008-02-13 16:57:44 +00:00
parent 0745f36410
commit 002626c526

View File

@ -293,6 +293,10 @@ wxMDIChildFrame::~wxMDIChildFrame()
{
if (m_menuBar)
delete m_menuBar;
// wxMDIClientWindow does not get redrawn properly after last child is removed
if (m_parent && m_parent->GetChildren().size() <= 1)
gtk_widget_queue_draw(m_parent->m_widget);
}
bool wxMDIChildFrame::Create( wxMDIParentFrame *parent,