From 45dabde68e77f1fb13f877413b5754c5389a233d Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 14 Apr 2020 18:00:09 +0100 Subject: [PATCH] Small cleanup in zone class --- pcbnew/class_zone.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pcbnew/class_zone.cpp b/pcbnew/class_zone.cpp index 73d14c7df1..891c4a7cad 100644 --- a/pcbnew/class_zone.cpp +++ b/pcbnew/class_zone.cpp @@ -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 ); }