Refinement in Gerber drill file: add %TF.FilePolarity,Positive*% in header.

This commit is contained in:
jean-pierre charras 2017-06-30 18:36:26 +02:00
parent e3d69b619f
commit 5d252639fa
1 changed files with 5 additions and 1 deletions

View File

@ -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;