]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not use Tooltips if they are disabled
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 28 Apr 2009 11:13:11 +0000 (11:13 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 28 Apr 2009 11:13:11 +0000 (11:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/statusbr.h

index e0efd1cff4e52b5b4eeb13e0bf2bc6609ed55e4d..0b286fc7f75e9eeae949c392e4b109b89fe92113 100644 (file)
@@ -186,13 +186,15 @@ protected:
 
     // wxWindow overrides:
 
-    virtual void DoSetToolTip( wxToolTip *tip )
+#if wxUSE_TOOLTIPS
+   virtual void DoSetToolTip( wxToolTip *tip )
         {
             wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS),
                          "Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!");
             wxWindow::DoSetToolTip(tip);
         }
-
+#endif
+   
     virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }