From 829fa97f3c8dcbcc934abbc1c206dafa3ceceeec Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 14 Apr 2016 09:32:35 +0200 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 b7fa38f367..4d8e28ee0f 100644 --- a/common/common_plotGERBER_functions.cpp +++ b/common/common_plotGERBER_functions.cpp @@ -148,8 +148,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 );