X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e766c8a9ad51ecf73e8f1641992f1007ee9e5e0a..6443de026310552cacd68a6d0318e73d14929680:/src/mac/carbon/frame.cpp diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index 6bde00fc74..8a589cbf54 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -225,19 +225,6 @@ void wxFrameMac::PositionStatusBar() } } -void wxFrameMac::SetMenuBar(wxMenuBar *menuBar) -{ - if (!menuBar) - { - return; - } - - m_frameMenuBar = menuBar; -// m_frameMenuBar->MacInstallMenuBar() ; - m_frameMenuBar->Attach((wxFrame *)this); -} - - // Responds to colour changes, and passes event on to children. void wxFrameMac::OnSysColourChanged(wxSysColourChangedEvent& event) { @@ -315,7 +302,7 @@ void wxFrameMac::DoGetClientSize(int *x, int *y) const wxWindow::DoGetClientSize( x , y ) ; #if wxUSE_STATUSBAR - if ( GetStatusBar() ) + if ( GetStatusBar() && y ) { int statusX, statusY; GetStatusBar()->GetClientSize(&statusX, &statusY); @@ -324,8 +311,10 @@ void wxFrameMac::DoGetClientSize(int *x, int *y) const #endif // wxUSE_STATUSBAR wxPoint pt(GetClientAreaOrigin()); - *y -= pt.y; - *x -= pt.x; + if ( y ) + *y -= pt.y; + if ( x ) + *x -= pt.x; } void wxFrameMac::DoSetClientSize(int clientwidth, int clientheight)