Altium schematic import: do not overwrite sheet name.

This commit is contained in:
Alex 2024-02-07 05:03:47 +03:00
parent a32d5174a1
commit e55a803572
1 changed files with 4 additions and 1 deletions

View File

@ -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 );