From 705aa64c24ff42c375a3aa9bc21407477c2c4d17 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 27 Dec 2021 19:08:41 -0500 Subject: [PATCH] Fix parent of schematic setup parent nodes --- eeschema/dialogs/dialog_schematic_setup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/dialogs/dialog_schematic_setup.cpp b/eeschema/dialogs/dialog_schematic_setup.cpp index 5b34a231d2..22c186788d 100644 --- a/eeschema/dialogs/dialog_schematic_setup.cpp +++ b/eeschema/dialogs/dialog_schematic_setup.cpp @@ -67,15 +67,15 @@ DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP( SCH_EDIT_FRAME* aFrame ) : * WARNING: If you change page names you MUST update calls to ShowSchematicSetupDialog(). */ - m_treebook->AddPage( new wxPanel( this ), _( "General" ) ); + m_treebook->AddPage( new wxPanel( GetTreebook() ), _( "General" ) ); m_treebook->AddSubPage( m_formatting, _( "Formatting" ) ); m_treebook->AddSubPage( m_fieldNameTemplates, _( "Field Name Templates" ) ); - m_treebook->AddPage( new wxPanel( this ), _( "Electrical Rules" ) ); + m_treebook->AddPage( new wxPanel( GetTreebook() ), _( "Electrical Rules" ) ); m_treebook->AddSubPage( m_severities, _( "Violation Severity" ) ); m_treebook->AddSubPage( m_pinMap, _( "Pin Conflicts Map" ) ); - m_treebook->AddPage( new wxPanel( this ), _( "Project" ) ); + m_treebook->AddPage( new wxPanel( GetTreebook() ), _( "Project" ) ); m_treebook->AddSubPage( m_netclasses, _( "Net Classes" ) ); m_treebook->AddSubPage( m_textVars, _( "Text Variables" ) );