X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a977709b11432e05af48e205cc02c0a0ad4ecf16..c59f3b2d96647662dc1a80283c005e19184cc5dc:/contrib/samples/mmedia/mmboard.cpp diff --git a/contrib/samples/mmedia/mmboard.cpp b/contrib/samples/mmedia/mmboard.cpp index a11274d13c..a5450edfa1 100644 --- a/contrib/samples/mmedia/mmboard.cpp +++ b/contrib/samples/mmedia/mmboard.cpp @@ -379,11 +379,11 @@ void MMBoardFrame::CloseVideoWindow() { if (!m_video_window) return; - - m_sizer->Remove(m_video_window); + + m_sizer->Detach( m_video_window ); delete m_video_window; m_video_window = NULL; - + m_sizer->Fit(this); }