Use the correct parent for the new Formatting page
This commit is contained in:
parent
e9c29a4c1f
commit
7550bd6d4f
|
@ -26,14 +26,17 @@
|
|||
#include <board.h>
|
||||
#include <board_design_settings.h>
|
||||
#include <panel_setup_formatting.h>
|
||||
#include <widgets/paged_dialog.h>
|
||||
#include <wx/treebook.h>
|
||||
|
||||
|
||||
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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue