From 03314bf354c46c3bbf80d57e7a9e4a6db2e0ee71 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 19 Feb 2026 10:29:14 +0100 Subject: [PATCH] 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 --- pcbnew/plot_brditems_plotter.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index 92f5d8b490..bea7d1c644 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -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: