Relax handling of duplicate netclasses in Altium parser
There are some "good" boards that have this for some reason
This commit is contained in:
parent
965aaa217c
commit
504e02192c
|
@ -1052,9 +1052,10 @@ void ALTIUM_PCB::ParseClasses6Data( const ALTIUM_COMPOUND_FILE& aAltiumPcbFi
|
|||
|
||||
if( m_board->GetDesignSettings().m_NetSettings->m_NetClasses.count( nc->GetName() ) )
|
||||
{
|
||||
// Name conflict, this is likely a bad board file.
|
||||
// Name conflict, happens in some unknown circumstances
|
||||
// unique_ptr will delete nc on this code path
|
||||
THROW_IO_ERROR( wxString::Format( _( "Duplicate netclass name '%s'." ), elem.name ) );
|
||||
wxLogWarning( _( "More than one Altium netclass with name '%s' found. "
|
||||
"Only the first one will be imported." ), elem.name );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue