fix FOOTPRINT::GetLikelyAttribute() to follow the comments of
FOOTPRINT::CheckFootprintAttributes(): at least one through hole pad means most probably a footprint through hole attribute.
This commit is contained in:
parent
b227f9de61
commit
629081af65
|
@ -910,12 +910,14 @@ int FOOTPRINT::GetLikelyAttribute() const
|
|||
}
|
||||
}
|
||||
|
||||
if( smd_count > 0 )
|
||||
return FP_SMD;
|
||||
|
||||
// Footprints with plated through-hole pads should usually be marked through hole even if they
|
||||
// also have SMD because they might not be auto-placed. Exceptions to this might be shielded
|
||||
if( tht_count > 0 )
|
||||
return FP_THROUGH_HOLE;
|
||||
|
||||
if( smd_count > 0 )
|
||||
return FP_SMD;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue