From 53360acc3d37b35749bdc6adce3f3793a09218db Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 27 May 2020 09:24:32 +0200 Subject: [PATCH] DIALOG_BOARD_SETUP: fix incorrect parent for the PANEL_TEXT_VARIABLES panel. Fixes #4548 https://gitlab.com/kicad/code/kicad/issues/4548 --- pcbnew/dialogs/dialog_board_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_board_setup.cpp b/pcbnew/dialogs/dialog_board_setup.cpp index 12dc3a3eba..abb5f4b560 100644 --- a/pcbnew/dialogs/dialog_board_setup.cpp +++ b/pcbnew/dialogs/dialog_board_setup.cpp @@ -52,7 +52,7 @@ DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP( PCB_EDIT_FRAME* aFrame ) : m_severities = new PANEL_SETUP_SEVERITIES( this, dummyItem, bds.m_DRCSeverities, DRCE_FIRST, DRCE_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 ShowBoardSetupDialog().