Browse Source

Give blank schematics an output name

Plotting a blank schematic should have a placeholder name until the user
saves the file

Fixes https://gitlab.com/kicad/code/kicad/issues/6561
6.0.7
Seth Hillbrand 5 years ago
parent
commit
b08555b924
  1. 6
      eeschema/dialogs/dialog_plot_schematic.cpp

6
eeschema/dialogs/dialog_plot_schematic.cpp

@ -364,8 +364,12 @@ wxFileName DIALOG_PLOT_SCHEMATIC::createPlotFileName( const wxString& aPlotFileN
{
wxString path = ExpandEnvVarSubstitutions( m_outputDirectoryName->GetValue(), &Prj() );
wxFileName outputDir = wxFileName::DirName( path );
wxString plotFileName;
wxString plotFileName = Prj().AbsolutePath( aPlotFileName + wxT( "." ) + aExtension);
if( !aPlotFileName.IsEmpty() )
plotFileName = Prj().AbsolutePath( aPlotFileName + wxT( "." ) + aExtension );
else
plotFileName = Prj().AbsolutePath( _( "Schematic" ) + wxT( "." ) + aExtension );
if( !EnsureFileDirectoryExists( &outputDir, plotFileName, aReporter ) )
{

Loading…
Cancel
Save