]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cshelp.cpp
Added missing header and missing logic. :)
[wxWidgets.git] / src / common / cshelp.cpp
index cb9a8d895fabc48e7d9db76b4f999c16d5b46a98..ba35623830a676c58ae3cdb2e13611f5c421a81b 100644 (file)
@@ -305,6 +305,7 @@ void wxSimpleHelpProvider::AddHelp(wxWindowID id, const wxString& text)
 
 bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
 {
+#if wxUSE_TIPWINDOW
     static wxTipWindow* s_tipWindow = NULL;
 
     if (s_tipWindow)
@@ -323,6 +324,7 @@ bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
 
         return TRUE;
     }
+#endif // wxUSE_TIPWINDOW
 
     return FALSE;
 }