]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpctrl.cpp
don't pass negative height to wxWindow::SetSize(), this results in GTK+ warnings
[wxWidgets.git] / src / html / helpctrl.cpp
index a0c120aa75574e7d54c71508740e274e3887515a..206e868051e9f343791ca42e4b57d08a3e0ec4db 100644 (file)
@@ -87,12 +87,13 @@ void wxHtmlHelpController::OnCloseFrame(wxCloseEvent& evt)
 {
     if (m_Config)
         WriteCustomization(m_Config, m_ConfigRoot);
-    
+
     evt.Skip();
 
     OnQuit();
 
-    m_helpWindow->SetController(NULL);
+    if ( m_helpWindow )
+        m_helpWindow->SetController(NULL);
     m_helpWindow = NULL;
     m_helpDialog = NULL;
     m_helpFrame = NULL;