Fix incorrect gerber job file syntax, when a board has inner layers.
This commit is contained in:
parent
0f5eb421b3
commit
5b44e80355
|
@ -541,19 +541,17 @@ void GERBER_JOBFILE_WRITER::addJSONDesignRules()
|
|||
minclearanceOuter*m_conversionUnits ) );
|
||||
|
||||
removeJSONSepararator(); // remove the last separator
|
||||
|
||||
if( !hasInnerLayers )
|
||||
closeBlock();
|
||||
else
|
||||
closeBlockWithSep();
|
||||
|
||||
|
||||
if( hasInnerLayers )
|
||||
{
|
||||
closeBlockWithSep();
|
||||
|
||||
openBlock();
|
||||
addJSONObject( "\"Layers\": \"Inner\",\n" );
|
||||
|
||||
addJSONObject( "\"Values\":\n" );
|
||||
openBlock();
|
||||
|
||||
addJSONObject( wxString::Format( "\"PadToPad\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
||||
addJSONObject( wxString::Format( "\"PadToTrack\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
||||
addJSONObject( wxString::Format( "\"TrackToTrack\": %.3f,\n", minclearance_track2track*m_conversionUnits ) );
|
||||
|
|
Loading…
Reference in New Issue