Rework on Gerber plot functions: add X2 attributes in J5 version. Minor code cleaning.

This commit is contained in:
jean-pierre charras
2015-03-25 14:07:05 +01:00
parent 0b7fd874a0
commit 85bc2ae015
7 changed files with 167 additions and 42 deletions
+3 -2
View File
@@ -117,9 +117,10 @@ bool GERBER_PLOTTER::StartPlot()
if( outputFile == NULL )
return false;
if( ! m_attribFunction.IsEmpty() )
for( unsigned ii = 0; ii < m_headerExtraLines.GetCount(); ii++ )
{
fprintf( outputFile, "%s\n", TO_UTF8( m_attribFunction ) );
if( ! m_headerExtraLines[ii].IsEmpty() )
fprintf( outputFile, "%s\n", TO_UTF8( m_headerExtraLines[ii] ) );
}
// Set coordinate format to 3.6 or 4.5 absolute, leading zero omitted