Protect against dynamic_cast
Items might not be FOOTPRINT, in which case the dynamic_cast will return nullptr. Check for this in the subfunction
This commit is contained in:
parent
26995b10fb
commit
bac7b3e77a
|
@ -169,6 +169,9 @@ static void insideCourtyard( LIBEVAL::CONTEXT* aCtx, void* self )
|
||||||
{
|
{
|
||||||
SHAPE_POLY_SET footprintCourtyard;
|
SHAPE_POLY_SET footprintCourtyard;
|
||||||
|
|
||||||
|
if( !footprint )
|
||||||
|
return false;
|
||||||
|
|
||||||
if( footprint->IsFlipped() )
|
if( footprint->IsFlipped() )
|
||||||
footprintCourtyard = footprint->GetPolyCourtyardBack();
|
footprintCourtyard = footprint->GetPolyCourtyardBack();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue