Small cleanup in zone class

This commit is contained in:
Ian McInerney 2020-04-14 18:00:09 +01:00
parent 37a4dd927b
commit 45dabde68e
1 changed files with 1 additions and 7 deletions

View File

@ -956,13 +956,7 @@ void ZONE_CONTAINER::AddPolygon( std::vector< wxPoint >& aPolygon )
outline.SetClosed( true );
// Add the outline as a new polygon in the polygon set
if( m_Poly->OutlineCount() == 0 )
m_Poly->AddOutline( outline );
else
m_Poly->AddHole( outline );
SetNeedRefill( true );
AddPolygon( outline );
}