Fix minor Fabmaster issue

This commit is contained in:
Seth Hillbrand 2021-02-13 16:32:39 -08:00
parent 838a70129d
commit 55db1aa5f5
1 changed files with 10 additions and 13 deletions

View File

@ -2525,19 +2525,16 @@ bool FABMASTER::loadZone( BOARD* aBoard, const std::unique_ptr<FABMASTER::TRACE>
} }
} }
if( zone && zone_outline ) if( zone_outline->Outline( 0 ).PointCount() >= 3 )
{ {
if( zone_outline->Outline( 0 ).PointCount() >= 3 ) zone->SetOutline( zone_outline );
{ aBoard->Add( zone, ADD_MODE::APPEND );
zone->SetOutline( zone_outline ); }
aBoard->Add( zone, ADD_MODE::APPEND ); else
} {
else delete( zone_outline );
{ delete( zone );
delete( zone_outline ); }
delete( zone );
}
}
return true; return true;
} }