]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/mdig.cpp
added wxZipFSHandler::Cleanup() (modified patch 1213615)
[wxWidgets.git] / src / generic / mdig.cpp
index 8d33478b6dab6160ea800f7f51b920b56911b2b6..7e950d05425573cc02c7333b181b73624ee0ad62 100644 (file)
@@ -344,6 +344,7 @@ void wxGenericMDIParentFrame::DoHandleMenu(wxCommandEvent &event)
                 {
 #if 1   // What's best? Delayed deleting or immediate deleting?
                     delete m_pActiveChild;
                 {
 #if 1   // What's best? Delayed deleting or immediate deleting?
                     delete m_pActiveChild;
+                    m_pActiveChild = NULL;
 #else
                     ActivateNext();
 
 #else
                     ActivateNext();
 
@@ -699,7 +700,7 @@ bool wxGenericMDIClientWindow::CreateClient( wxGenericMDIParentFrame *parent, lo
 {
     SetWindowStyleFlag(style);
 
 {
     SetWindowStyleFlag(style);
 
-    bool success = wxNotebook::Create(parent, wxID_NOTEBOOK_CLIENT_AREA, wxPoint(), wxSize(100, 100), 0);
+    bool success = wxNotebook::Create(parent, wxID_NOTEBOOK_CLIENT_AREA, wxPoint(0,0), wxSize(100, 100), 0);
     if (success)
     {
         /*
     if (success)
     {
         /*