Fix incorrect mask size for rectangular and trapezoid pads.

Fixes: lp:1773926
https://bugs.launchpad.net/kicad/+bug/1773926

Fixes: lp:1773961
https://bugs.launchpad.net/kicad/+bug/1773961
This commit is contained in:
jean-pierre charras 2018-05-29 13:45:45 +02:00
parent 71e64de3a4
commit dfa9175209
1 changed files with 5 additions and 3 deletions

View File

@ -431,15 +431,17 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
case PAD_SHAPE_CIRCLE: case PAD_SHAPE_CIRCLE:
case PAD_SHAPE_OVAL: case PAD_SHAPE_OVAL:
pad->SetSize( padPlotsSize ); pad->SetSize( padPlotsSize );
if( aPlotOpt.GetSkipPlotNPTH_Pads() && if( aPlotOpt.GetSkipPlotNPTH_Pads() &&
( pad->GetSize() == pad->GetDrillSize() ) && ( pad->GetSize() == pad->GetDrillSize() ) &&
( pad->GetAttribute() == PAD_ATTRIB_HOLE_NOT_PLATED ) ) ( pad->GetAttribute() == PAD_ATTRIB_HOLE_NOT_PLATED ) )
break;
// Fall through: itemplotter.PlotPad( pad, color, plotMode );
break;
case PAD_SHAPE_TRAPEZOID: case PAD_SHAPE_TRAPEZOID:
case PAD_SHAPE_RECT: case PAD_SHAPE_RECT:
case PAD_SHAPE_ROUNDRECT: case PAD_SHAPE_ROUNDRECT:
pad->SetSize( padPlotsSize );
itemplotter.PlotPad( pad, color, plotMode ); itemplotter.PlotPad( pad, color, plotMode );
break; break;