Browse Source

Pcbnew: fix incorrect rotation of thermal spoke for rotated footprints.

If the footprint rotation is not a multiple of 90°, the thermal spokes
were not correctly rotated.
Fixes #13919
https://gitlab.com/kicad/code/kicad/issues/13919
newinvert
jean-pierre charras 3 years ago
parent
commit
2032b8af59
  1. 2
      pcbnew/zone_filler.cpp

2
pcbnew/zone_filler.cpp

@ -1809,7 +1809,7 @@ void ZONE_FILLER::buildThermalSpokes( const ZONE* aZone, PCB_LAYER_ID aLayer,
// If the spokes are at a cardinal angle then we can generate them from a bounding box
// without trig.
if( pad->GetThermalSpokeAngle().IsCardinal() )
if( ( pad->GetOrientation() + pad->GetThermalSpokeAngle() ).IsCardinal() )
{
BOX2I spokesBox = pad->GetBoundingBox();
spokesBox.Inflate( thermalReliefGap + epsilon );

Loading…
Cancel
Save