Use create-if-missing behaviour for layers map.

Fixes https://gitlab.com/kicad/code/kicad/issues/8618
This commit is contained in:
Jeff Young 2021-06-16 16:34:06 +01:00
parent 3269ca3201
commit 24bf5d3c5c
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ bool GERBVIEW_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
wxString key;
int value = 0;
At( "gerber_to_pcb_layers" ) = nlohmann::json::array();
Set( "gerber_to_pcb_layers", nlohmann::json::array() );
for( int i = 0; i < GERBER_DRAWLAYERS_COUNT; i++ )
{