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__