diff --git a/src/osx/carbon/frame.cpp b/src/osx/carbon/frame.cpp index 01c8825444..72960b3b8d 100644 --- a/src/osx/carbon/frame.cpp +++ b/src/osx/carbon/frame.cpp @@ -356,12 +356,12 @@ void wxFrame::PositionToolBar() wxTopLevelWindow::DoGetClientSize( &cw , &ch ); - int statusX = 0 ; - int statusY = 0 ; - #if wxUSE_STATUSBAR if (GetStatusBar() && GetStatusBar()->IsShown()) { + int statusX = 0 ; + int statusY = 0 ; + GetStatusBar()->GetSize(&statusX, &statusY); ch -= statusY; }