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 ) );
|
minclearanceOuter*m_conversionUnits ) );
|
||||||
|
|
||||||
removeJSONSepararator(); // remove the last separator
|
removeJSONSepararator(); // remove the last separator
|
||||||
|
|
||||||
|
if( !hasInnerLayers )
|
||||||
closeBlock();
|
closeBlock();
|
||||||
|
else
|
||||||
|
closeBlockWithSep();
|
||||||
|
|
||||||
|
|
||||||
if( hasInnerLayers )
|
if( hasInnerLayers )
|
||||||
{
|
{
|
||||||
closeBlockWithSep();
|
|
||||||
|
|
||||||
openBlock();
|
openBlock();
|
||||||
addJSONObject( "\"Layers\": \"Inner\",\n" );
|
addJSONObject( "\"Layers\": \"Inner\",\n" );
|
||||||
|
|
||||||
addJSONObject( "\"Values\":\n" );
|
|
||||||
openBlock();
|
|
||||||
|
|
||||||
addJSONObject( wxString::Format( "\"PadToPad\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
addJSONObject( wxString::Format( "\"PadToPad\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
||||||
addJSONObject( wxString::Format( "\"PadToTrack\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
addJSONObject( wxString::Format( "\"PadToTrack\": %.3f,\n", minPadClearanceInner*m_conversionUnits ) );
|
||||||
addJSONObject( wxString::Format( "\"TrackToTrack\": %.3f,\n", minclearance_track2track*m_conversionUnits ) );
|
addJSONObject( wxString::Format( "\"TrackToTrack\": %.3f,\n", minclearance_track2track*m_conversionUnits ) );
|
||||||
|
|
Loading…
Reference in New Issue