X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e766c8a9ad51ecf73e8f1641992f1007ee9e5e0a..2d2c394b59407ca3780a92a28ab12f63489c9cb1:/src/mac/frame.cpp diff --git a/src/mac/frame.cpp b/src/mac/frame.cpp index 6bde00fc74..fb3d2fee9f 100644 --- a/src/mac/frame.cpp +++ b/src/mac/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)