Plot pads in sketch mode: fix incorrect shape of rotated rectangles

shape of rectangles (in sketch mode) are now plot as polygon like most of
other shapes

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23142
This commit is contained in:
jean-pierre charras
2026-02-19 10:29:14 +01:00
parent 3be3653aaf
commit 03314bf354
-9
View File
@@ -296,15 +296,6 @@ void BRDITEMS_PLOTTER::PlotPad( const PAD* aPad, PCB_LAYER_ID aLayer, const COLO
}
case PAD_SHAPE::RECTANGLE:
{
const VECTOR2I& size = aPad->GetSize( aLayer );
m_plotter->ThickRect( VECTOR2I( shape_pos.x - ( size.x / 2 ), shape_pos.y - (size.y / 2 ) ),
VECTOR2I( shape_pos.x + ( size.x / 2 ), shape_pos.y + (size.y / 2 ) ),
GetSketchPadLineWidth(), nullptr );
break;
}
case PAD_SHAPE::ROUNDRECT:
case PAD_SHAPE::TRAPEZOID:
case PAD_SHAPE::CHAMFERED_RECT: