pcbnew: Correct spectra output default filename
Fixes: lp:1736724 * https://bugs.launchpad.net/kicad/+bug/1736724
This commit is contained in:
parent
bfc3804115
commit
86b4a3c3e6
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue