mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix invalid filename on windows
Replace ':' with '_' as this is an invalid character in windows filenames
This commit is contained in:
parent
637902f43f
commit
ae88fe5d48
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user