Fix null dereference in DRC checking.

This commit is contained in:
Jeff Young 2020-07-02 22:23:28 +01:00
parent eb1ff80d57
commit 9940931b0f
1 changed files with 3 additions and 1 deletions

View File

@ -620,7 +620,9 @@ bool SHAPE_RECT::Collide( const SEG& aSeg, int aClearance, int* aActual ) const
{
if( BBox( 0 ).Contains( aSeg.A ) || BBox( 0 ).Contains( aSeg.B ) )
{
if( aActual )
*aActual = 0;
return true;
}