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.BooleanAdd( candidate->GetFilledPolysList(), SHAPE_POLY_SET::PM_FAST );
|
||||||
}
|
}
|
||||||
|
|
||||||
aggregateArea.Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
if( zone )
|
||||||
itemplotter.PlotFilledAreas( zone, aggregateArea );
|
{
|
||||||
|
aggregateArea.Fracture( SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
||||||
|
itemplotter.PlotFilledAreas( zone, aggregateArea );
|
||||||
|
}
|
||||||
|
|
||||||
aPlotter->EndBlock( NULL );
|
aPlotter->EndBlock( NULL );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue