git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28962
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxFrame::PositionStatusBar()
{
- if (m_frameStatusBar )
+ if (m_frameStatusBar && m_frameStatusBar->IsShown() )
{
int w, h;
GetClientSize(&w, &h);
wxTopLevelWindow::DoGetClientSize( x , y ) ;
#if wxUSE_STATUSBAR
- if ( GetStatusBar() && y )
+ if ( GetStatusBar() && GetStatusBar()->IsShown() && y )
{
if ( y) *y -= WX_MAC_STATUSBAR_HEIGHT;
}
GetSize( &cw , &ch ) ;
- if ( GetStatusBar() )
+ if ( GetStatusBar() && GetStatusBar()->IsShown())
{
int statusX, statusY;
GetStatusBar()->GetClientSize(&statusX, &statusY);