Pcbnew: Fix bug in MODULE::FindPadByName( const wxString& aPadName ).

This method was using a case insensitive comparison to find the pad matching aPadName.
But in netlist we are using case sensitive comparisons to attribute a net to a pad.
So if in the netlist there is a pad name that does not match any footprint pad name using case sensitive comparison but if it matches some pads using case insensitive comparison, the net is not set, but the test to detect non existing pads fails.
This commit is contained in:
jean-pierre charras 2019-07-25 17:37:25 +02:00
parent dd702cd53d
commit 3d9c04ecaf
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ D_PAD* MODULE::FindPadByName( const wxString& aPadName ) const
{
for( auto pad : m_pads )
{
if( pad->GetName().CmpNoCase( aPadName ) == 0 ) // why case insensitive?
if( pad->GetName() == aPadName )
return pad;
}