From d449cf47c341df0d7ed66cbcdee38a00f6cc8aa3 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 24 Mar 2003 21:09:51 +0000 Subject: [PATCH] Use m_dummyNSView if necessary to get the superview frame for DoMoveWindow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/window.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index dfe05d763d..554fdf65b4 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -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); - 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]; -- 2.47.2