diff --git a/pcbnew/exporters/gerber_jobfile_writer.cpp b/pcbnew/exporters/gerber_jobfile_writer.cpp index b10104d025..a475d46732 100644 --- a/pcbnew/exporters/gerber_jobfile_writer.cpp +++ b/pcbnew/exporters/gerber_jobfile_writer.cpp @@ -541,19 +541,17 @@ void GERBER_JOBFILE_WRITER::addJSONDesignRules() minclearanceOuter*m_conversionUnits ) ); removeJSONSepararator(); // remove the last separator - closeBlock(); + + 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 ) );