diff --git a/pcbnew/exporters/gendrill_gerber_writer.cpp b/pcbnew/exporters/gendrill_gerber_writer.cpp index 6d412dbc72..8fcf44a7cb 100644 --- a/pcbnew/exporters/gendrill_gerber_writer.cpp +++ b/pcbnew/exporters/gendrill_gerber_writer.cpp @@ -207,11 +207,15 @@ int GERBER_WRITER::createDrillFile( wxString& aFullFilename, bool aIsNpth, // else: empty file. - // End of attribute: + // End of .FileFunction attribute: text << "*%"; plotter.AddLineToHeader( text ); + // Add file polarity (positive) + text = "%TF.FilePolarity,Positive*%"; + plotter.AddLineToHeader( text ); + if( !plotter.OpenFile( aFullFilename ) ) return -1;