Fix importing a symbol in Symbol editor.
This commit is contained in:
parent
6e4473855b
commit
c7daf511bc
|
@ -84,12 +84,7 @@ void SYMBOL_EDIT_FRAME::ImportSymbol()
|
|||
if( dlg.ShowModal() == wxID_CANCEL )
|
||||
return;
|
||||
|
||||
wxFileName fn;
|
||||
|
||||
if( dlg.GetFilterIndex() == 0 )
|
||||
fn = EnsureFileExtension( dlg.GetPath(), KiCadSymbolLibFileExtension );
|
||||
else
|
||||
fn = EnsureFileExtension( dlg.GetPath(), LegacySymbolLibFileExtension );
|
||||
wxFileName fn( dlg.GetPath() );
|
||||
|
||||
m_mruPath = fn.GetPath();
|
||||
|
||||
|
|
Loading…
Reference in New Issue