SHAPE_LINE_CHAIN: Unify constructors

Keeps the multi element SHAPE_LINE_CHAIN constructors in a single
routine using std::vector and implicit construction.
This commit is contained in:
Seth Hillbrand
2019-12-12 13:54:48 +00:00
parent c4d853c1e8
commit eb3d32f967
12 changed files with 61 additions and 108 deletions
+1 -2
View File
@@ -690,8 +690,7 @@ void BRDITEMS_PLOTTER::PlotFilledAreas( ZONE_CONTAINER* aZone, SHAPE_POLY_SET& p
for( int ic = 0; ic < outline.PointCount(); ++ic )
{
VECTOR2I& point = outline.Point( ic );
cornerList.emplace_back( wxPoint( point.x, point.y ) );
cornerList.emplace_back( wxPoint( outline.CPoint( ic ) ) );
}
if( cornerList.size() ) // Plot the current filled area outline