]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpfrm.cpp
set GtkRcStyle::text to fg colour too to allow changing the text colour in single...
[wxWidgets.git] / src / html / helpfrm.cpp
index 7066746015c38f0537e17ea7fc12d84f1a0f7ebb..09ca6f4727b04b83609bc53d97dfef093931da72 100644 (file)
@@ -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