Fix null pointer access (from Coverity scan).
This commit is contained in:
parent
88eab8134e
commit
254ba1f998
|
@ -141,8 +141,11 @@ void PlotSilkScreen( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
|
|||
aggregateArea.BooleanAdd( candidate->GetFilledPolysList(), SHAPE_POLY_SET::PM_FAST );
|
||||
}
|
||||
|
||||
aggregateArea.Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
||||
itemplotter.PlotFilledAreas( zone, aggregateArea );
|
||||
if( zone )
|
||||
{
|
||||
aggregateArea.Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
||||
itemplotter.PlotFilledAreas( zone, aggregateArea );
|
||||
}
|
||||
|
||||
aPlotter->EndBlock( NULL );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue