Fix breakage of r72474 that used the parent window instead of wxInfoBar itself
as the parent of its close button.
Closes #14750.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72690
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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