From cc688a3e1d3a56917d7e68bea4c16300ec461610 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sat, 18 Jul 2020 00:36:28 +0100 Subject: [PATCH] Initialize variables properly Fixes https://gitlab.com/kicad/code/kicad/issues/4919 --- common/widgets/paged_dialog.cpp | 3 ++- eeschema/dialogs/dialog_update_from_pcb.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index f352c32527..ee4e925fb5 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -43,7 +43,8 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aUse m_errorCtrl( nullptr ), m_errorRow( 0 ), m_errorCol( 0 ), - m_auxiliaryButton( nullptr ) + m_auxiliaryButton( nullptr ), + m_resetButton( nullptr ) { auto mainSizer = new wxBoxSizer( wxVERTICAL ); SetSizer( mainSizer ); diff --git a/eeschema/dialogs/dialog_update_from_pcb.cpp b/eeschema/dialogs/dialog_update_from_pcb.cpp index 5c8d9a2812..ce15ee5b6e 100644 --- a/eeschema/dialogs/dialog_update_from_pcb.cpp +++ b/eeschema/dialogs/dialog_update_from_pcb.cpp @@ -30,7 +30,7 @@ // Saved dialog settings DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB_SAVED_STATE - DIALOG_UPDATE_FROM_PCB::s_savedDialogState{ true, true, true, true, false }; + DIALOG_UPDATE_FROM_PCB::s_savedDialogState{ true, true, true, true, false, false }; DIALOG_UPDATE_FROM_PCB::DIALOG_UPDATE_FROM_PCB( SCH_EDIT_FRAME* aParent ) : DIALOG_UPDATE_FROM_PCB_BASE( aParent ),