Altium schematic import: do not overwrite sheet name.
This commit is contained in:
parent
a32d5174a1
commit
e55a803572
|
@ -504,7 +504,10 @@ void SCH_IO_ALTIUM::ParseAltiumSch( const wxString& aFileName )
|
|||
{
|
||||
sheet->SetScreen( new SCH_SCREEN( m_schematic ) );
|
||||
SCH_SCREEN* screen = sheet->GetScreen();
|
||||
sheet->SetName( loadAltiumFileName.GetName() );
|
||||
|
||||
if( sheet->GetName().Trim().empty() )
|
||||
sheet->SetName( loadAltiumFileName.GetName() );
|
||||
|
||||
wxCHECK2( screen, continue );
|
||||
|
||||
m_sheetPath.push_back( sheet );
|
||||
|
|
Loading…
Reference in New Issue