diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 4959fbae61..527a402624 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -120,7 +120,7 @@ void SCH_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent, { wxTreebook* book = aParent->GetTreebook(); - book->AddPage( new wxPanel( this ), _( "Eeschema" ) ); + book->AddPage( new wxPanel( book ), _( "Eeschema" ) ); book->AddSubPage( new PANEL_EESCHEMA_DISPLAY_OPTIONS( this, book ), _( "Display Options" ) ); book->AddSubPage( new PANEL_EESCHEMA_SETTINGS( this, book ), _( "Editing Options" ) ); book->AddSubPage( new PANEL_EESCHEMA_COLOR_CONFIG( this, book ), _( "Colors" ) ); @@ -461,7 +461,7 @@ void LIB_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent, { wxTreebook* book = aParent->GetTreebook(); - book->AddPage( new wxPanel( this ), _( "Symbol Editor" ) ); + book->AddPage( new wxPanel( book ), _( "Symbol Editor" ) ); book->AddSubPage( new PANEL_DISPLAY_OPTIONS( this, aParent ), _( "Display Options" ) ); book->AddSubPage( new PANEL_LIBEDIT_SETTINGS( this, book ), _( "Defaults" ) ); diff --git a/gerbview/gerbview_config.cpp b/gerbview/gerbview_config.cpp index a636477f8d..54e70b6a88 100644 --- a/gerbview/gerbview_config.cpp +++ b/gerbview/gerbview_config.cpp @@ -39,7 +39,7 @@ void GERBVIEW_FRAME::InstallPreferences( PAGED_DIALOG* aParent, { wxTreebook* book = aParent->GetTreebook(); - book->AddPage( new wxPanel( this ), _( "Gerbview" ) ); + book->AddPage( new wxPanel( book ), _( "Gerbview" ) ); book->AddSubPage( new PANEL_GERBVIEW_DISPLAY_OPTIONS( this, book ), _( "Display Options" ) ); book->AddSubPage( new PANEL_GERBVIEW_SETTINGS( this, book ), _( "Editing Options" ) ); diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index 4ce80c9f19..feb063a27c 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -761,7 +761,7 @@ void FOOTPRINT_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent, { wxTreebook* book = aParent->GetTreebook(); - book->AddPage( new wxPanel( this ), _( "Footprint Editor" ) ); + book->AddPage( new wxPanel( book ), _( "Footprint Editor" ) ); book->AddSubPage( new PANEL_MODEDIT_DISPLAY_OPTIONS( this, aParent ), _( "Display Options" ) ); book->AddSubPage( new PANEL_MODEDIT_SETTINGS( this, aParent ), _( "Editing Options" ) ); book->AddSubPage( new PANEL_MODEDIT_DEFAULTS( this, aParent ), _( "Default Values" ) ); diff --git a/pcbnew/pcbnew_config.cpp b/pcbnew/pcbnew_config.cpp index 449eacff59..46b2f6f9ee 100644 --- a/pcbnew/pcbnew_config.cpp +++ b/pcbnew/pcbnew_config.cpp @@ -73,7 +73,7 @@ void PCB_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent, { wxTreebook* book = aParent->GetTreebook(); - book->AddPage( new wxPanel( this ), _( "Pcbnew" ) ); + book->AddPage( new wxPanel( book ), _( "Pcbnew" ) ); book->AddSubPage( new PANEL_PCBNEW_DISPLAY_OPTIONS( this, aParent ), _( "Display Options" ) ); book->AddSubPage( new PANEL_PCBNEW_SETTINGS( this, aParent ), _( "Editing Options" ) ); #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU)