From cda9650380ca2d834a0240bb629218a6787d8547 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 17 May 2021 11:44:17 +0200 Subject: [PATCH] Eeschema: ensure the actual canvas type is saved in config. The saved type was not updated after switching the canvas type from Preferences. --- eeschema/sch_edit_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index c439b15fca..a883230b65 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -311,6 +311,9 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : SCH_EDIT_FRAME::~SCH_EDIT_FRAME() { + // Ensure m_canvasType is up to date, to save it in config + m_canvasType = GetCanvas()->GetBackend(); + // Shutdown all running tools if( m_toolManager ) {