Silence Coverity warning.
This commit is contained in:
parent
ba1a2aceaa
commit
2568c168a2
|
@ -1038,10 +1038,13 @@ void DRC::testKeepoutAreas()
|
||||||
// Fast test to detect a footprint inside the keepout area bounding box.
|
// Fast test to detect a footprint inside the keepout area bounding box.
|
||||||
if( areaBBox.Intersects( fp->GetBoundingBox() ) )
|
if( areaBBox.Intersects( fp->GetBoundingBox() ) )
|
||||||
{
|
{
|
||||||
fp->BuildPolyCourtyard();
|
SHAPE_POLY_SET outline;
|
||||||
|
|
||||||
SHAPE_POLY_SET outline = fp->IsFlipped() ? fp->GetPolyCourtyardBack()
|
if( fp->BuildPolyCourtyard() )
|
||||||
: fp->GetPolyCourtyardFront();
|
{
|
||||||
|
outline = fp->IsFlipped() ? fp->GetPolyCourtyardBack()
|
||||||
|
: fp->GetPolyCourtyardFront();
|
||||||
|
}
|
||||||
|
|
||||||
if( outline.OutlineCount() == 0 )
|
if( outline.OutlineCount() == 0 )
|
||||||
outline = fp->GetBoundingPoly();
|
outline = fp->GetBoundingPoly();
|
||||||
|
|
Loading…
Reference in New Issue