From 6a33549b684b7b761ec232e584b5e52d509bab30 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 15 Apr 2016 14:24:25 -0400 Subject: [PATCH] Gerber files: ensure the "level polarity dark" is set in each file (this is the default, but ensuring that is better and can avoid issues when panneling files) --- common/common_plotGERBER_functions.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/common_plotGERBER_functions.cpp b/common/common_plotGERBER_functions.cpp index 2e041e600a..e4de7c04c4 100644 --- a/common/common_plotGERBER_functions.cpp +++ b/common/common_plotGERBER_functions.cpp @@ -147,8 +147,12 @@ bool GERBER_PLOTTER::StartPlot() else fputs( "%MOMM*%\n", outputFile ); - /* Specify linear interpol (G01) */ + // Be sure the usual dark polarity is selected: + fputs( "%LPD*%\n", outputFile ); + + // Specify linear interpol (G01): fputs( "G01*\n", outputFile ); + fputs( "G04 APERTURE LIST*\n", outputFile ); /* Select the default aperture */ SetCurrentLineWidth( -1 );