From 6d034f7d784435291e6996c0c0e7657161be523e Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 9 Feb 2004 05:12:38 +0000 Subject: [PATCH] Do not try to set the proper position if creating a window with a NULL parent. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/window.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 5358dfa354..aa2bc30b01 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -267,8 +267,8 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID winid, { m_parent->AddChild(this); m_parent->CocoaAddChild(this); + SetInitialFrameRect(pos,size); } - SetInitialFrameRect(pos,size); return TRUE; } -- 2.50.0