pcbnew: Correct spectra output default filename

Fixes: lp:1736724
* https://bugs.launchpad.net/kicad/+bug/1736724
This commit is contained in:
Seth Hillbrand 2017-12-06 17:18:35 -08:00 committed by Wayne Stambaugh
parent bfc3804115
commit 86b4a3c3e6
1 changed files with 6 additions and 10 deletions

View File

@ -74,20 +74,16 @@ static const double safetyMargin = 0.1;
// see wxPcbStruct.h // see wxPcbStruct.h
void PCB_EDIT_FRAME::ExportToSpecctra( wxCommandEvent& event ) void PCB_EDIT_FRAME::ExportToSpecctra( wxCommandEvent& event )
{ {
wxString fullFileName = GetBoard()->GetFileName(); wxString fullFileName;
wxString path;
wxString name;
wxString ext;
wxString dsn_ext = SpecctraDsnFileExtension; wxString dsn_ext = SpecctraDsnFileExtension;
wxString mask = SpecctraDsnFileWildcard(); wxString mask = SpecctraDsnFileWildcard();
wxFileName fn( GetBoard()->GetFileName() );
wxFileName::SplitPath( fullFileName, &path, &name, &ext ); fn.SetExt( dsn_ext );
name += dsn_ext; fullFileName = EDA_FILE_SELECTOR( _( "Specctra DSN File" ),
fn.GetPath(),
fullFileName = EDA_FILE_SELECTOR( _( "Specctra DSN file:" ), fn.GetFullName(),
path,
name, // name.ext without path!
dsn_ext, dsn_ext,
mask, mask,
this, this,