X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f418332658bb166101c228e0ed8208787fccbf59..80a779275ae04443c568dca919adb26cf6f5002c:/src/mac/carbon/frame.cpp?ds=sidebyside diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index 47d8fd32cb..d414c78a6b 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -344,15 +344,19 @@ void wxFrame::PositionToolBar() int cw, ch; GetSize( &cw , &ch ) ; - - int statusX, statusY; - GetStatusBar()->GetClientSize(&statusX, &statusY); + int statusX = 0 ; + int statusY = 0 ; + +#if wxUSE_STATUSBAR if (GetStatusBar() && GetStatusBar()->IsShown()) { + GetStatusBar()->GetClientSize(&statusX, &statusY); ch -= statusY; } +#endif +#if wxUSE_TOOLBAR if (GetToolBar()) { int tx, ty, tw, th; @@ -383,6 +387,7 @@ void wxFrame::PositionToolBar() #endif } } +#endif } void wxFrame::PositionBars()