Gerber job file Fix incorrect .gbrjob file format when the board stackup is not yet initialized.

Fixes: lp:1847636
https://bugs.launchpad.net/kicad/+bug/1847636
This commit is contained in:
jean-pierre charras 2019-10-10 21:16:45 +02:00
parent 967b9d4a97
commit a43b00b666
1 changed files with 2 additions and 0 deletions

View File

@ -715,6 +715,8 @@ void GERBER_JOBFILE_WRITER::addJSONMaterialStackup()
if( uptodate ) // We can add the dielectric variant ("core" "prepreg" ...):
note << wxString::Format( " \"Type: %s", layer_name.c_str() );
else
note << "\"";
note << wxString::Format( " (from %s to %s)\"\n",
formatStringFromUTF32( m_pcb->GetLayerName( last_copper_layer ) ),