wxWindow::DoGetClientSize( x , y ) ;
#if wxUSE_STATUSBAR
- if ( GetStatusBar() )
+ if ( GetStatusBar() && y )
{
int statusX, statusY;
GetStatusBar()->GetClientSize(&statusX, &statusY);
#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)