eagle: Use the "first" tag instead of pin num
Eagle parsing allows pin 1 to be different from the other pins in the package but this is set by a tag marking the pin as "first" rather than the actual number of the pin. Fixes: lp:1829251 * https://bugs.launchpad.net/kicad/+bug/1829251
This commit is contained in:
parent
d701637eab
commit
dbc40096db
|
@ -1471,7 +1471,7 @@ void EAGLE_PLUGIN::packagePad( MODULE* aModule, wxXmlNode* aTree ) const
|
||||||
aModule->PadsList().PushBack( pad );
|
aModule->PadsList().PushBack( pad );
|
||||||
transferPad( e, pad );
|
transferPad( e, pad );
|
||||||
|
|
||||||
if( pad->GetName() == wxT( "1" ) && m_rules->psFirst != EPAD::UNDEF )
|
if( e.first && *e.first && m_rules->psFirst != EPAD::UNDEF )
|
||||||
shape = m_rules->psFirst;
|
shape = m_rules->psFirst;
|
||||||
else if( aModule->GetLayer() == F_Cu && m_rules->psTop != EPAD::UNDEF )
|
else if( aModule->GetLayer() == F_Cu && m_rules->psTop != EPAD::UNDEF )
|
||||||
shape = m_rules->psTop;
|
shape = m_rules->psTop;
|
||||||
|
|
Loading…
Reference in New Issue