Compare commits

...

2 Commits

Author SHA1 Message Date
modbw
213e6a7926
Merge branch 'fix-invalid-filename' into 'master'
Fix invalid filename on windows

See merge request kicad/code/kicad!2290
2025-09-09 05:55:16 +00:00
modbw
ae88fe5d48 Fix invalid filename on windows
Replace ':' with '_' as this is an invalid character in windows filenames
2025-08-21 12:40:26 -04:00

View File

@ -531,6 +531,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 );