Fix names of libraries added to symbol/footprint library tables
This commit is contained in:
parent
3f734eb1b5
commit
b907fb856d
|
@ -375,7 +375,8 @@ void DIALOG_SYMBOL_LIB_TABLE::browseLibrariesHandler( wxCommandEvent& event )
|
|||
int last_row = m_cur_grid->GetNumberRows() - 1;
|
||||
wxFileName fn( filePath );
|
||||
|
||||
m_cur_grid->SetCellValue( last_row, COL_NICKNAME, fn.GetName() );
|
||||
m_cur_grid->SetCellValue( last_row, COL_NICKNAME,
|
||||
LIB_ID::FixIllegalChars( fn.GetName(), LIB_ID::ID_SCH ) );
|
||||
|
||||
// TODO the following code can detect only schematic types, not libs
|
||||
// SCH_IO_MGR needs to provide file extension information for libraries too
|
||||
|
|
|
@ -742,7 +742,8 @@ void DIALOG_FP_LIB_TABLE::OnClickLibraryWizard( wxCommandEvent& event )
|
|||
int last_row = libgrid->GetNumberRows() - 1;
|
||||
|
||||
// Add the nickname: currently make it from filename
|
||||
tbl->SetValue( last_row, COL_NICKNAME, it->GetDescription() );
|
||||
tbl->SetValue( last_row, COL_NICKNAME,
|
||||
LIB_ID::FixIllegalChars( it->GetDescription(), LIB_ID::ID_PCB ) );
|
||||
|
||||
// Add the path:
|
||||
tbl->SetValue( last_row, COL_URI, it->GetAutoPath( dlg.GetLibScope() ) );
|
||||
|
|
Loading…
Reference in New Issue