From cb8f6db68d3f4cfc3ea8799f444394a8bcff7a06 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 1 Apr 2023 12:06:07 +0100 Subject: [PATCH] Add hole clearance to moutning hole keepouts for SPECCTRA. Fixes https://gitlab.com/kicad/code/kicad/issues/14439 --- pcbnew/specctra_import_export/specctra_export.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/specctra_import_export/specctra_export.cpp b/pcbnew/specctra_import_export/specctra_export.cpp index 211fc10e63..6324b8555f 100644 --- a/pcbnew/specctra_import_export/specctra_export.cpp +++ b/pcbnew/specctra_import_export/specctra_export.cpp @@ -621,6 +621,8 @@ IMAGE* SPECCTRA_DB::makeIMAGE( BOARD* aBoard, FOOTPRINT* aFootprint ) double diameter = scale( pad->GetDrillSize().x ); POINT vertex = mapPt( pad->GetPos0() ); + diameter += aBoard->GetDesignSettings().m_HoleClearance * 2; + int layerCount = aBoard->GetCopperLayerCount(); for( int layer=0; layer