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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user