From: Vadim Zeitlin Date: Tue, 16 Oct 2012 14:06:05 +0000 (+0000) Subject: Use the correct window as parent of wxInfoBar close button. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a68fb3fc385b9cbb3c66cb321887854a5224688f?ds=inline Use the correct window as parent of wxInfoBar close button. 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 --- 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