From d05d8b61001fbc15282a71b57132e98b07950b09 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 4 Sep 2019 11:22:55 +0200 Subject: [PATCH] Pcbnew: Fix incorrect canvas type saved in config, when the type is legacy canvas. --- pcbnew/pcb_base_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_base_frame.cpp b/pcbnew/pcb_base_frame.cpp index 54ea11de77..df95fcdd34 100644 --- a/pcbnew/pcb_base_frame.cpp +++ b/pcbnew/pcb_base_frame.cpp @@ -126,7 +126,7 @@ PCB_BASE_FRAME::PCB_BASE_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame PCB_BASE_FRAME::~PCB_BASE_FRAME() { // Ensure m_canvasType is up to date, to save it in config - if( !GetGalCanvas() ) + if( !IsGalCanvasActive() ) m_canvasType = EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE; else m_canvasType = GetGalCanvas()->GetBackend();