From 3bcda184dd1f659f346befdb7830b64db8c61199 Mon Sep 17 00:00:00 2001 From: Simon Wells Date: Mon, 7 Sep 2015 20:09:41 +0200 Subject: [PATCH] Fix issue in plot Gerber X2 format ( missing % char). Stra,gely, does not happen on all platforms. --- pcbnew/pcbplot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp index 4b8f89e1f6..cc7f900890 100644 --- a/pcbnew/pcbplot.cpp +++ b/pcbnew/pcbplot.cpp @@ -215,7 +215,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter, #ifdef USE_J5_ATTR // Creates the TF,.GenerationSoftware. Format is: // %TF,.GenerationSoftware,,[,]*% - text.Printf( wxT( "%TF.GenerationSoftware,KiCad,Pcbnew,%s*%%" ), GetBuildVersion() ); + text.Printf( wxT( "%%TF.GenerationSoftware,KiCad,Pcbnew,%s*%%" ), GetBuildVersion() ); aPlotter->AddLineToHeader( text ); // creates the TF.CreationDate ext: @@ -230,7 +230,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter, // we want +(or -) hh:mm if( msg.Len() > 3 ) 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 ); // Creates the TF,.JobID. Format is (from Gerber file format doc): @@ -276,7 +276,7 @@ void AddGerberX2Attribute( PLOTTER * aPlotter, if( rev.IsEmpty() ) 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 ); #endif