diff --git a/eeschema/sch_sheet.cpp b/eeschema/sch_sheet.cpp index 72d85ea2e1..5e85990cf5 100644 --- a/eeschema/sch_sheet.cpp +++ b/eeschema/sch_sheet.cpp @@ -397,7 +397,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; } @@ -447,7 +447,7 @@ bool SCH_SHEET::HasUndefinedPins() const for( SCH_ITEM* aItem : m_screen->Items().OfType( SCH_HIER_LABEL_T ) ) { - if( !pin->GetText().CmpNoCase( static_cast( aItem )->GetText() ) ) + if( !pin->GetText().Cmp( static_cast( aItem )->GetText() ) ) { HLabel = static_cast( aItem ); break; diff --git a/qa/unittests/eeschema/test_sch_sheet.cpp b/qa/unittests/eeschema/test_sch_sheet.cpp index cc29779b06..45579b3cea 100644 --- a/qa/unittests/eeschema/test_sch_sheet.cpp +++ b/qa/unittests/eeschema/test_sch_sheet.cpp @@ -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 );