Browse Source

Plot filenames automatically generated: change the point ('.') find in layer names to '_'

This change was in comments, but not in code.
pull/13/head
jean-pierre charras 7 years ago
parent
commit
eb06ae5910
  1. 4
      pcbnew/pcbplot.cpp

4
pcbnew/pcbplot.cpp

@ -381,7 +381,7 @@ void BuildPlotFileName( wxFileName* aFilename, const wxString& aOutputDir,
// remove leading and trailing spaces if any from the suffix, if
// something survives add it to the name;
// also the suffix can contain some not allowed chars in filename (/ \ . :),
// also the suffix can contain some not allowed chars in filename (/ \ . : and some others),
// so change them to underscore
// Remember it can be called from a python script, so the illegal chars
// have to be filtered here.
@ -390,7 +390,7 @@ void BuildPlotFileName( wxFileName* aFilename, const wxString& aOutputDir,
suffix.Trim( false );
wxString badchars = wxFileName::GetForbiddenChars(wxPATH_DOS);
badchars.Append( '%' );
badchars.Append( "%." );
for( unsigned ii = 0; ii < badchars.Len(); ii++ )
suffix.Replace( badchars[ii], wxT("_") );

Loading…
Cancel
Save