]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/mmedia/mmboard.cpp
Fixed redefinition of i
[wxWidgets.git] / contrib / samples / mmedia / mmboard.cpp
index a11274d13c54e2d40d1088b2743c432c655c7c02..a5450edfa177b51c73a4b58ab41b6b18e721fa1e 100644 (file)
@@ -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);
 }