Fix issue in plot Gerber X2 format ( missing % char). Stra,gely, does not happen on all platforms.

This commit is contained in:
Simon Wells 2015-09-07 20:09:41 +02:00 committed by jean-pierre charras
parent 4a06cd2326
commit 3bcda184dd
1 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter,
#ifdef USE_J5_ATTR #ifdef USE_J5_ATTR
// Creates the TF,.GenerationSoftware. Format is: // Creates the TF,.GenerationSoftware. Format is:
// %TF,.GenerationSoftware,<vendor>,<application name>[,<application version>]*% // %TF,.GenerationSoftware,<vendor>,<application name>[,<application version>]*%
text.Printf( wxT( "%TF.GenerationSoftware,KiCad,Pcbnew,%s*%%" ), GetBuildVersion() ); text.Printf( wxT( "%%TF.GenerationSoftware,KiCad,Pcbnew,%s*%%" ), GetBuildVersion() );
aPlotter->AddLineToHeader( text ); aPlotter->AddLineToHeader( text );
// creates the TF.CreationDate ext: // creates the TF.CreationDate ext:
@ -230,7 +230,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter,
// we want +(or -) hh:mm // we want +(or -) hh:mm
if( msg.Len() > 3 ) if( msg.Len() > 3 )
msg.insert( 3, ":", 1 ), msg.insert( 3, ":", 1 ),
text.Printf( wxT( "%TF.CreationDate,%s%s*%%" ), GetChars( date.FormatISOCombined() ), GetChars( msg ) ); text.Printf( wxT( "%%TF.CreationDate,%s%s*%%" ), GetChars( date.FormatISOCombined() ), GetChars( msg ) );
aPlotter->AddLineToHeader( text ); aPlotter->AddLineToHeader( text );
// Creates the TF,.JobID. Format is (from Gerber file format doc): // Creates the TF,.JobID. Format is (from Gerber file format doc):
@ -276,7 +276,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter,
if( rev.IsEmpty() ) if( rev.IsEmpty() )
rev = wxT( "rev?" ); rev = wxT( "rev?" );
text.Printf( wxT( "%TF.JobID,%s,%s,%s*%%" ), msg.ToAscii(), GetChars( guid ), rev.ToAscii() ); text.Printf( wxT( "%%TF.JobID,%s,%s,%s*%%" ), msg.ToAscii(), GetChars( guid ), rev.ToAscii() );
aPlotter->AddLineToHeader( text ); aPlotter->AddLineToHeader( text );
#endif #endif