From 2051ad81237988301291f661d4b00672fca2c35a Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 23 Dec 2023 18:44:25 +0100 Subject: [PATCH] Fix a DRC issue about thermal reliefs. They can be not fully counted when a rect pad has the same (or a smaller) size as the thermal spoke width, due to a bad bounding box used in calculations. Fixes #16265 https://gitlab.com/kicad/code/kicad/-/issues/16265 --- pcbnew/drc/drc_test_provider_zone_connections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_test_provider_zone_connections.cpp b/pcbnew/drc/drc_test_provider_zone_connections.cpp index 923dcdd105..515732a1d5 100644 --- a/pcbnew/drc/drc_test_provider_zone_connections.cpp +++ b/pcbnew/drc/drc_test_provider_zone_connections.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2021-2022 KiCad Developers. + * Copyright (C) 2021-2023 KiCad Developers. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -144,7 +144,7 @@ void DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer( ZONE* aZone, PCB_LAYER_I pad->TransformShapeToPolygon( padPoly, aLayer, mid_gap, ARC_LOW_DEF, ERROR_OUTSIDE ); SHAPE_LINE_CHAIN& padOutline = padPoly.Outline( 0 ); - BOX2I padBBox( item_bbox ); + BOX2I padBBox( padOutline.BBox() ); int spokes = 0; int ignoredSpokes = 0; VECTOR2I ignoredSpokePos;