X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed7919869508ccd5c868683c28706f82e82a1b9b..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index c2f9f21f04..ef3ab1defc 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -129,7 +129,7 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const wxPoint pt(0, 0); #if wxUSE_TOOLBAR - if ( GetToolBar() ) + if ( GetToolBar() && GetToolBar()->IsShown() ) { int w, h; GetToolBar()->GetSize(& w, & h);