mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 21:47:55 +08:00
Fix wxOSX build with wxUSE_TOOLBAR==0
Add preprocessor check around code using wxToolBar in wxFrame. Closes #26798.
This commit is contained in:
@@ -60,6 +60,7 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
|
||||
return false;
|
||||
|
||||
#if wxUSE_TOOLBAR
|
||||
if ( wxTheApp->OSXIsFullScreenApp() )
|
||||
{
|
||||
if ((parent != nullptr) && (HasFlag(wxCAPTION) || HasFlag(wxCLOSE_BOX)))
|
||||
@@ -80,6 +81,7 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
tb->Realize();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user