From ea468399804aac543fb3841a39112a5e5037c7ba Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 21 Mar 2009 14:32:28 +0000 Subject: [PATCH] making sure the repositioning within the contentview only happens if the parent really has a superview, and not only a contentRect like notebook, fixes #10615 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/window.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index f81e0d63b4..822bf528c7 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1080,7 +1080,7 @@ void wxWidgetCocoaImpl::Move(int x, int y, int width, int height) wxWindowMac* parent = GetWXPeer()->GetParent(); // under Cocoa we might have a contentView in the wxParent to which we have to // adjust the coordinates - if (parent) + if (parent && [m_osxView superview] != parent->GetHandle() ) { int cx = 0,cy = 0,cw = 0,ch = 0; if ( parent->GetPeer() ) -- 2.50.0