Pcbnew: Fix incorrect canvas type saved in config, when the type is legacy canvas.

This commit is contained in:
jean-pierre charras 2019-09-04 11:22:55 +02:00
parent 9856867954
commit d05d8b6100
1 changed files with 1 additions and 1 deletions

View File

@ -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();