Gerbview: fix bug: did not store the current selected GAL engine in config.

Was due to recent changes in config handling.
This commit is contained in:
jean-pierre charras 2019-08-29 11:30:58 +02:00
parent 71c7bf3274
commit 7ed415cab3
1 changed files with 4 additions and 2 deletions

View File

@ -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] )
{