]> git.saurik.com Git - wxWidgets.git/commitdiff
Do not try to set the proper position if creating a window with a NULL parent.
authorDavid Elliott <dfe@tgwbd.org>
Mon, 9 Feb 2004 05:12:38 +0000 (05:12 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 9 Feb 2004 05:12:38 +0000 (05:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index 5358dfa354cd9728ab8feb3cf252083a8eb26daf..aa2bc30b0126bfa1fdadfab2a3375c73b6165f7c 100644 (file)
@@ -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;
 }