X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e766c8a9ad51ecf73e8f1641992f1007ee9e5e0a..94e2ed3b8db0220160c0b939782cd46914ec073a:/src/mac/carbon/frame.cpp diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index 6bde00fc74..fb3d2fee9f 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -315,7 +315,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 +324,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)