diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index 4a69b0e1f4..9251e5a5c3 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -202,6 +202,9 @@ GERBVIEW_FRAME::GERBVIEW_FRAME( KIWAY* aKiway, wxWindow* aParent ) GERBVIEW_FRAME::~GERBVIEW_FRAME() { + // Ensure m_canvasType is up to date, to save it in config + m_canvasType = GetCanvas()->GetBackend(); + // Shutdown all running tools if( m_toolManager ) m_toolManager->ShutdownAllTools(); diff --git a/pagelayout_editor/pl_editor_frame.cpp b/pagelayout_editor/pl_editor_frame.cpp index 154a62b5d3..797f242792 100644 --- a/pagelayout_editor/pl_editor_frame.cpp +++ b/pagelayout_editor/pl_editor_frame.cpp @@ -222,6 +222,9 @@ PL_EDITOR_FRAME::PL_EDITOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) : PL_EDITOR_FRAME::~PL_EDITOR_FRAME() { + // Ensure m_canvasType is up to date, to save it in config + m_canvasType = GetCanvas()->GetBackend(); + // Shutdown all running tools if( m_toolManager ) m_toolManager->ShutdownAllTools();