X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20c81bed846981e90769826b94a91eebb91158f1..9859d369b49e35a1cad0f760173e165f974fb6cb:/src/html/helpfrm.cpp diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 7066746015..09ca6f4727 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -242,7 +242,7 @@ void wxHtmlHelpFrame::OnAbout(wxCommandEvent& event) // remains opened bool wxHtmlHelpFrame::ShouldPreventAppExit() const { - return (this == wxTheApp->GetTopWindow()); + return (wx_const_cast(wxHtmlHelpFrame*, this) == wxTheApp->GetTopWindow()); } #endif // wxUSE_WXHTML_HELP