diff --git a/include/wx/statusbr.h b/include/wx/statusbr.h index 9b40bf23ca..e0efd1cff4 100644 --- a/include/wx/statusbr.h +++ b/include/wx/statusbr.h @@ -187,10 +187,10 @@ protected: // wxWindow overrides: virtual void DoSetToolTip( wxToolTip *tip ) - { + { wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS), "Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!"); - return wxWindow::DoSetToolTip(tip); + wxWindow::DoSetToolTip(tip); } virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }