]> git.saurik.com Git - wxWidgets.git/commitdiff
Use m_dummyNSView if necessary to get the superview frame for DoMoveWindow
authorDavid Elliott <dfe@tgwbd.org>
Mon, 24 Mar 2003 21:09:51 +0000 (21:09 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 24 Mar 2003 21:09:51 +0000 (21:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index dfe05d763d1da2b6016876ed4a80cbbe840fd1c5..554fdf65b446755cc83844181094443dd7d72a19 100644 (file)
@@ -205,7 +205,8 @@ void wxWindowCocoa::DoMoveWindow(int x, int y, int width, int height)
 {
     wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
 
 {
     wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
 
-    NSView *superview = [m_cocoaNSView superview];
+    NSView *nsview = m_dummyNSView?m_dummyNSView:m_cocoaNSView;
+    NSView *superview = [nsview superview];
     wxCHECK_RET(superview,"NSView does not have a superview");
     NSRect parentRect = [superview frame];
 
     wxCHECK_RET(superview,"NSView does not have a superview");
     NSRect parentRect = [superview frame];