From 7ed415cab3de3305e9a26cbf828c57ce99a9a73c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 29 Aug 2019 11:30:58 +0200 Subject: [PATCH] Gerbview: fix bug: did not store the current selected GAL engine in config. Was due to recent changes in config handling. --- common/eda_draw_frame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/eda_draw_frame.cpp b/common/eda_draw_frame.cpp index 0371015355..7ba7b9948d 100644 --- a/common/eda_draw_frame.cpp +++ b/common/eda_draw_frame.cpp @@ -650,12 +650,14 @@ bool EDA_DRAW_FRAME::saveCanvasTypeSetting( EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvas // a parent frame) FRAME_T allowed_frames[] = { - FRAME_SCH, FRAME_PCB, FRAME_PCB_MODULE_EDITOR + FRAME_SCH, + FRAME_PCB, FRAME_PCB_MODULE_EDITOR, + FRAME_GERBER }; bool allow_save = false; - for( int ii = 0; ii < 3; ii++ ) + for( unsigned ii = 0; ii < arrayDim( allowed_frames ); ii++ ) { if( m_Ident == allowed_frames[ii] ) {