From cf58a48f624f45c7c0439776755ff4a2445dec31 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Tue, 7 Mar 2000 11:48:36 +0000 Subject: [PATCH] Add Child to parent instead of adding it to itself! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/frame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } - -- 2.45.2