X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be7a086c0c0faef78005ad66791da31a76a31fcd..328a3a009fd86bb7df6efc4e0086074af34846ab:/src/generic/infobar.cpp diff --git a/src/generic/infobar.cpp b/src/generic/infobar.cpp index 26a2368bdc..31f0d0ed7f 100644 --- a/src/generic/infobar.cpp +++ b/src/generic/infobar.cpp @@ -82,7 +82,7 @@ bool wxInfoBarGeneric::Create(wxWindow *parent, wxWindowID winid) m_text = new wxStaticText(this, wxID_ANY, ""); - m_button = wxBitmapButton::NewCloseButton(parent, wxID_ANY); + m_button = wxBitmapButton::NewCloseButton(this, wxID_ANY); m_button->SetToolTip(_("Hide this notification message.")); // center the text inside the sizer with an icon to the left of it and a