From fe6cc0c3d8a8784e061d0b77643e8334ed4d14ac Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 14 Apr 2021 11:33:46 +0100 Subject: [PATCH] Spokes are from center of pad, not from hole (ie: pad position). Fixes https://gitlab.com/kicad/code/kicad/issues/8195 --- pcbnew/zone_filler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index dd6dab207f..07c35bec0e 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -1303,7 +1303,9 @@ void ZONE_FILLER::buildThermalSpokes( const ZONE* aZone, PCB_LAYER_ID aLayer, double padAngle = pad->GetOrientation(); PAD dummy_pad( *pad ); dummy_pad.SetOrientation( 0.0 ); - dummy_pad.SetPosition( { 0, 0 } ); + + // Spokes are from center of pad, not from hole + dummy_pad.SetPosition( -pad->GetOffset() ); BOX2I reliefBB = dummy_pad.GetBoundingBox(); reliefBB.Inflate( thermalReliefGap + epsilon );