Fix minor Fabmaster issue
This commit is contained in:
parent
838a70129d
commit
55db1aa5f5
|
@ -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 )
|
||||
{
|
||||
zone->SetOutline( zone_outline );
|
||||
aBoard->Add( zone, ADD_MODE::APPEND );
|
||||
}
|
||||
else
|
||||
{
|
||||
delete( zone_outline );
|
||||
delete( zone );
|
||||
}
|
||||
}
|
||||
if( zone_outline->Outline( 0 ).PointCount() >= 3 )
|
||||
{
|
||||
zone->SetOutline( zone_outline );
|
||||
aBoard->Add( zone, ADD_MODE::APPEND );
|
||||
}
|
||||
else
|
||||
{
|
||||
delete( zone_outline );
|
||||
delete( zone );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue