From a5c9151800ec5dcb0488815928c1b5c4c57b597b Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 18 Oct 2020 11:31:44 -0400 Subject: [PATCH] Move the dock art provider to a pointer instance --- common/eda_base_frame.cpp | 3 ++- include/eda_base_frame.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 633898ddb4..84cde264c3 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -96,7 +97,7 @@ EDA_BASE_FRAME::EDA_BASE_FRAME( wxWindow* aParent, FRAME_T aFrameType, m_mruPath = wxStandardPaths::Get().GetDocumentsDir(); m_FrameSize = wxSize( s_minsize_x, s_minsize_y ); - m_auimgr.SetArtProvider( &m_auiDockArt ); + m_auimgr.SetArtProvider( new WX_AUI_DOCK_ART() ); m_settingsManager = &Pgm().GetSettingsManager(); diff --git a/include/eda_base_frame.h b/include/eda_base_frame.h index 8577542262..0185dc38ca 100644 --- a/include/eda_base_frame.h +++ b/include/eda_base_frame.h @@ -47,7 +47,6 @@ #include #include #include -#include #include // Option for main frames @@ -136,7 +135,6 @@ protected: wxString m_AboutTitle; // Name of program displayed in About. - WX_AUI_DOCK_ART m_auiDockArt; // Our custom dock art provider we feed to the aui manager wxAuiManager m_auimgr; wxString m_perspective; // wxAuiManager perspective.