diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 374c3342ab..e8697749df 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -347,7 +347,9 @@ bool wxFindReplaceDialog::Create(wxWindow *parent, { m_windowStyle = flags; m_FindReplaceData = data; - m_parent = parent; + + if ( parent ) + parent->AddChild(this); SetTitle(title);