Browse Source

Don't display unit in single unit symbols of annotation error message

Fixes https://gitlab.com/kicad/code/kicad/-/issues/11748
7.0
Roberto Fernandez Bautista 3 years ago
parent
commit
ecbf5c1e14
  1. 4
      eeschema/component_references_lister.cpp

4
eeschema/component_references_lister.cpp

@ -684,7 +684,9 @@ int SCH_REFERENCE_LIST::CheckAnnotation( ANNOTATION_ERROR_HANDLER aHandler )
else
tmp = wxT( "?" );
if( ( flatList[ii].m_unit > 0 ) && ( flatList[ii].m_unit < 0x7FFFFFFF ) )
if( ( flatList[ii].GetLibPart()->GetUnitCount() > 1 )
&& ( flatList[ii].m_unit > 0 )
&& ( flatList[ii].m_unit < 0x7FFFFFFF ) )
{
msg.Printf( _( "Duplicate items %s%s%s\n" ),
flatList[ii].GetRef(),

Loading…
Cancel
Save