From e95323a37e4c9c11c1dceabd3e767baf004dfd0f Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 3 Jul 2021 16:48:46 -0400 Subject: [PATCH] Revert "Remove unused variable." It's only unused on Mac This reverts commit d3fb22014f58173ece7c2e0db69a0dc316517108. --- common/widgets/gal_options_panel.cpp | 1 + include/widgets/gal_options_panel.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/widgets/gal_options_panel.cpp b/common/widgets/gal_options_panel.cpp index 4e36a3f7f4..f34221103a 100644 --- a/common/widgets/gal_options_panel.cpp +++ b/common/widgets/gal_options_panel.cpp @@ -66,6 +66,7 @@ static const UTIL::CFG_MAP gridSnapConfigVals = GAL_OPTIONS_PANEL::GAL_OPTIONS_PANEL( wxWindow* aParent, EDA_DRAW_FRAME* aDrawFrame ) : wxPanel( aParent, wxID_ANY ), + m_drawFrame( aDrawFrame ), m_galOptions( aDrawFrame->GetGalDisplayOptions() ) { // the main sizer that holds "columns" of settings diff --git a/include/widgets/gal_options_panel.h b/include/widgets/gal_options_panel.h index fff66e779b..5ae8e8c6c1 100644 --- a/include/widgets/gal_options_panel.h +++ b/include/widgets/gal_options_panel.h @@ -51,6 +51,8 @@ public: bool TransferDataFromWindow() override; private: + EDA_DRAW_FRAME* m_drawFrame; + wxBoxSizer* m_mainSizer; #ifndef __WXMAC__