From a6eb6d3228ee110b7ecc2e874b087e84cecc12f9 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 5 Jan 2023 16:55:10 -0800 Subject: [PATCH] Default to SMD if we have an SMD pad SMD pads indicate that the footprint can be used in PnP more often than the presence of THT indicate that it cannot. Fixes https://gitlab.com/kicad/code/kicad/issues/13387 --- pcbnew/footprint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 135cda1dd7..a002904533 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -748,12 +748,12 @@ int FOOTPRINT::GetLikelyAttribute() const } } - if( tht_count > 0 ) - return FP_THROUGH_HOLE; - if( smd_count > 0 ) return FP_SMD; + if( tht_count > 0 ) + return FP_THROUGH_HOLE; + return 0; }