Fix invalid filename on windows

Replace ':' with '_' as this is an invalid character in windows filenames
This commit is contained in:
modbw 2025-08-18 15:00:04 +00:00 committed by Wayne Stambaugh
parent 637902f43f
commit ae88fe5d48

View File

@ -535,6 +535,7 @@ void SCH_PLOTTER::createSVGFiles( const SCH_PLOT_OPTS& aPlotOpts,
// so replace separators to create a unique filename:
fname.Replace( "/", "_" );
fname.Replace( "\\", "_" );
fname.Replace( ":", "_" );
wxString ext = SVG_PLOTTER::GetDefaultFileExtension();
wxFileName plotFileName = createPlotFileName( aPlotOpts, fname, ext, aReporter );