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 )
|
||||||
{
|
{
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue