Pcb plot: fixcrash due to a null pointer
Fixes #10223 https://gitlab.com/kicad/code/kicad/issues/10223
This commit is contained in:
parent
5879227ee2
commit
dde629330d
|
@ -882,12 +882,13 @@ void PlotSolderMaskLayer( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
|
||||||
for( const PCB_TRACK* track : aBoard->Tracks() )
|
for( const PCB_TRACK* track : aBoard->Tracks() )
|
||||||
{
|
{
|
||||||
const PCB_VIA* via = dyn_cast<const PCB_VIA*>( track );
|
const PCB_VIA* via = dyn_cast<const PCB_VIA*>( track );
|
||||||
int clearance = via->GetSolderMaskExpansion();
|
|
||||||
|
|
||||||
// Note: IsOnLayer() checks relevant mask layers of untented vias
|
// Note: IsOnLayer() checks relevant mask layers of untented vias
|
||||||
if( !via || !via->IsOnLayer( layer ) )
|
if( !via || !via->IsOnLayer( layer ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
int clearance = via->GetSolderMaskExpansion();
|
||||||
|
|
||||||
// add shapes with their exact mask layer size in initialPolys
|
// add shapes with their exact mask layer size in initialPolys
|
||||||
via->TransformShapeWithClearanceToPolygon( initialPolys, layer, clearance, maxError,
|
via->TransformShapeWithClearanceToPolygon( initialPolys, layer, clearance, maxError,
|
||||||
ERROR_OUTSIDE );
|
ERROR_OUTSIDE );
|
||||||
|
|
Loading…
Reference in New Issue