From 5f84071cfa97295f20bfddad96d6ff590e94daf0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 6 Aug 2021 17:45:57 +0200 Subject: [PATCH] Gerber plotter, GERBER_PLOTTER::plotArc( SHAPE_ARC& aArc ): fix missing G75 command --- common/plotters/GERBER_plotter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/plotters/GERBER_plotter.cpp b/common/plotters/GERBER_plotter.cpp index 79f29ed216..7b8b2ec012 100644 --- a/common/plotters/GERBER_plotter.cpp +++ b/common/plotters/GERBER_plotter.cpp @@ -856,6 +856,8 @@ void GERBER_PLOTTER::plotArc( const SHAPE_ARC& aArc, bool aPlotInRegion ) DPOINT devEnd = userToDeviceCoordinates( end ); DPOINT devCenter = userToDeviceCoordinates( center ) - userToDeviceCoordinates( start ); + fprintf( m_outputFile, "G75*\n" ); // Multiquadrant (360 degrees) mode + if( start_angle < end_angle ) fprintf( m_outputFile, "G03*\n" ); // Active circular interpolation, CCW else