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:
jean-pierre charras 2023-10-01 11:21:11 +02:00
parent b227f9de61
commit 629081af65
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}