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 )
|
// Footprints with plated through-hole pads should usually be marked through hole even if they
|
||||||
return FP_SMD;
|
// also have SMD because they might not be auto-placed. Exceptions to this might be shielded
|
||||||
|
|
||||||
if( tht_count > 0 )
|
if( tht_count > 0 )
|
||||||
return FP_THROUGH_HOLE;
|
return FP_THROUGH_HOLE;
|
||||||
|
|
||||||
|
if( smd_count > 0 )
|
||||||
|
return FP_SMD;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue