Pins are case-sensitive
Cleanup should remove mis-matched cases
Fixes https://gitlab.com/kicad/code/kicad/issues/14415
(cherry picked from commit 0984599624
)
This commit is contained in:
parent
798e13f70d
commit
89488a43b9
|
@ -398,7 +398,7 @@ bool SCH_SHEET::HasPin( const wxString& aName ) const
|
|||
{
|
||||
for( SCH_SHEET_PIN* pin : m_pins )
|
||||
{
|
||||
if( pin->GetText().CmpNoCase( aName ) == 0 )
|
||||
if( pin->GetText().Cmp( aName ) == 0 )
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -448,7 +448,7 @@ bool SCH_SHEET::HasUndefinedPins() const
|
|||
|
||||
for( SCH_ITEM* aItem : m_screen->Items().OfType( SCH_HIER_LABEL_T ) )
|
||||
{
|
||||
if( !pin->GetText().CmpNoCase( static_cast<SCH_HIERLABEL*>( aItem )->GetText() ) )
|
||||
if( !pin->GetText().Cmp( static_cast<SCH_HIERLABEL*>( aItem )->GetText() ) )
|
||||
{
|
||||
HLabel = static_cast<SCH_HIERLABEL*>( aItem );
|
||||
break;
|
||||
|
|
|
@ -123,7 +123,7 @@ BOOST_AUTO_TEST_CASE( AddPins )
|
|||
// now we can find it in the list
|
||||
BOOST_CHECK_EQUAL( m_sheet.HasPins(), true );
|
||||
BOOST_CHECK_EQUAL( m_sheet.HasPin( "pinname" ), true );
|
||||
BOOST_CHECK_EQUAL( m_sheet.HasPin( "PINname" ), true );
|
||||
BOOST_CHECK_EQUAL( m_sheet.HasPin( "PINname" ), false );
|
||||
|
||||
BOOST_CHECK_EQUAL( m_sheet.GetPin( pinPos ), &pinRef );
|
||||
|
||||
|
|
Loading…
Reference in New Issue