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

This change was in comments, but not in code.
This commit is contained in:
jean-pierre charras 2019-01-05 12:44:38 +01:00
parent a46f5c3af5
commit eb06ae5910
1 changed files with 2 additions and 2 deletions

View File

@ -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("_") );