X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ac636dd07f8a506ef940f07468e5baf07cfc97f..7e4952db837344e369ff9ccc7ece1f7b8c207cf1:/src/osx/cocoa/window.mm diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index ed2ddf329a..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() ) @@ -1352,11 +1352,7 @@ void wxWidgetCocoaImpl::SetControlSize( wxWindowVariant variant ) void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool) { if ([m_osxView respondsToSelector:@selector(setFont:)]) -#if wxOSX_USE_CORE_TEXT - [m_osxView setFont: (NSFont*)font.MacGetCTFont()]; -#else - -#endif + [m_osxView setFont: font.GetNSFont()]; } void wxWidgetCocoaImpl::InstallEventHandler( WXWidget control )