diff --git a/pcbnew/dialogs/panel_setup_formatting.cpp b/pcbnew/dialogs/panel_setup_formatting.cpp index df1bae26b8..d1d9971436 100644 --- a/pcbnew/dialogs/panel_setup_formatting.cpp +++ b/pcbnew/dialogs/panel_setup_formatting.cpp @@ -26,14 +26,17 @@ #include #include #include +#include +#include -PANEL_SETUP_FORMATTING::PANEL_SETUP_FORMATTING( wxWindow* aWindow, PCB_EDIT_FRAME* aFrame ) : - PANEL_SETUP_FORMATTING_BASE( aWindow ), +PANEL_SETUP_FORMATTING::PANEL_SETUP_FORMATTING( PAGED_DIALOG* aParent, PCB_EDIT_FRAME* aFrame ) : + PANEL_SETUP_FORMATTING_BASE( aParent->GetTreebook() ), m_frame( aFrame ) { } + bool PANEL_SETUP_FORMATTING::TransferDataToWindow() { const PCB_PLOT_PARAMS& settings = m_frame->GetBoard()->GetPlotOptions(); diff --git a/pcbnew/dialogs/panel_setup_formatting.h b/pcbnew/dialogs/panel_setup_formatting.h index ad98abd1f5..b703fc63b0 100644 --- a/pcbnew/dialogs/panel_setup_formatting.h +++ b/pcbnew/dialogs/panel_setup_formatting.h @@ -25,12 +25,13 @@ class PCB_EDIT_FRAME; class BOARD; +class PAGED_DIALOG; class PANEL_SETUP_FORMATTING : public PANEL_SETUP_FORMATTING_BASE { public: - PANEL_SETUP_FORMATTING( wxWindow* aWindow, PCB_EDIT_FRAME* aFrame ); + PANEL_SETUP_FORMATTING( PAGED_DIALOG* aParent, PCB_EDIT_FRAME* aFrame ); bool TransferDataToWindow() override; bool TransferDataFromWindow() override;