Add ERC check in component editor for conflicting multi-unit pins

Fixes: lp:1680638
* https://bugs.launchpad.net/kicad/+bug/1680638
This commit is contained in:
Jon Evans 2018-03-08 20:52:03 -05:00
parent 0a81782b5d
commit 2cc5c6fd45
1 changed files with 4 additions and 3 deletions

View File

@ -722,8 +722,7 @@ void LIB_EDIT_FRAME::OnCheckComponent( wxCommandEvent& event )
LIB_PIN* pin = pinList[ii - 1];
if( pin->GetNumber() != curr_pin->GetNumber()
|| pin->GetConvert() != curr_pin->GetConvert()
|| pin->GetUnit() != curr_pin->GetUnit() )
|| pin->GetConvert() != curr_pin->GetConvert() )
continue;
dup_error++;
@ -746,7 +745,9 @@ void LIB_EDIT_FRAME::OnCheckComponent( wxCommandEvent& event )
if( part->GetUnitCount() > 1 )
{
msg += wxString::Format( _( " in symbol %c" ), 'A' + curr_pin->GetUnit() - 1 );
msg += wxString::Format( _( " in units %c and %c" ),
'A' + curr_pin->GetUnit() - 1,
'A' + pin->GetUnit() - 1 );
}
if( m_showDeMorgan )