From bcf31ef3d1296541b1b1431266a0ad3db5413724 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 12 Apr 2020 18:17:57 +0200 Subject: [PATCH] DIALOG_SCHEMATIC_SETUP: fix incorrect parent of some sub-page panels. These panels must have the wxTreeBook as parent to receive mouse and key events. They previously have the dialog itself, but it does not work on any OS. --- eeschema/dialogs/dialog_schematic_setup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_schematic_setup.cpp b/eeschema/dialogs/dialog_schematic_setup.cpp index 2935bf53b0..e5a4bb1043 100644 --- a/eeschema/dialogs/dialog_schematic_setup.cpp +++ b/eeschema/dialogs/dialog_schematic_setup.cpp @@ -36,15 +36,15 @@ DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP( SCH_EDIT_FRAME* aFrame ) : m_frame( aFrame ), m_severities( nullptr ) { - m_formatting = new PANEL_SETUP_FORMATTING( this, aFrame ); - m_fieldNameTemplates = new PANEL_EESCHEMA_TEMPLATE_FIELDNAMES( aFrame, this, false ); - m_pinMap = new PANEL_SETUP_PINMAP( this, aFrame ); + m_formatting = new PANEL_SETUP_FORMATTING( m_treebook, aFrame ); + m_fieldNameTemplates = new PANEL_EESCHEMA_TEMPLATE_FIELDNAMES( aFrame, m_treebook, false ); + m_pinMap = new PANEL_SETUP_PINMAP( m_treebook, aFrame ); ERC_ITEM dummyItem; m_severities = new PANEL_SETUP_SEVERITIES( this, dummyItem, g_ErcSettings->m_Severities, ERCE_FIRST, ERCE_LAST ); - m_textVars = new PANEL_TEXT_VARIABLES( this, &Prj() ); + m_textVars = new PANEL_TEXT_VARIABLES( m_treebook, &Prj() ); /* * WARNING: If you change page names you MUST update calls to DoShowSchematicSetupDialog().