]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpfrm.cpp
missing commit
[wxWidgets.git] / src / html / helpfrm.cpp
index 8673493025d21a81397cb408c3143eb2595b6193..12d914ba2a5acae9f6b379e96d77ce4e49f1348d 100644 (file)
@@ -204,7 +204,7 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt)
     if (m_HtmlHelpWin->GetSplitterWindow() && m_HtmlHelpWin->GetCfgData().navig_on)
         m_HtmlHelpWin->GetCfgData().sashpos = m_HtmlHelpWin->GetSplitterWindow()->GetSashPosition();
 
-    if (m_helpController && m_helpController->IsKindOf(CLASSINFO(wxHtmlHelpController)))
+    if (m_helpController && wxDynamicCast(m_helpController, wxHtmlHelpController))
     {
         ((wxHtmlHelpController*) m_helpController)->OnCloseFrame(evt);
     }