Skip to content

Commit

Permalink
Don't display unit in single unit symbols of annotation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Qbort committed Jun 4, 2022
1 parent bb2fc28 commit ecbf5c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eeschema/component_references_lister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit ecbf5c1

Please sign in to comment.