diff --git a/src/motif/frame.cpp b/src/motif/frame.cpp index fac74a74a7..44907de9e5 100644 --- a/src/motif/frame.cpp +++ b/src/motif/frame.cpp @@ -132,7 +132,7 @@ bool wxFrame::Create(wxWindow *parent, const wxString& name) { if ( parent ) - AddChild(this); + parent->AddChild(this); else wxTopLevelWindows.Append(this); @@ -921,4 +921,3 @@ static void wxFrameEventHandler(Widget wid, } *continueToDispatch = True; } -