From a59cab24b83164db402acc1f4c20e57acc57fb93 Mon Sep 17 00:00:00 2001 From: Alexis Lockwood Date: Tue, 15 Dec 2020 18:33:55 -0700 Subject: [PATCH] HPGL: Fix missing point in custom pad outline --- common/plotters/HPGL_plotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/plotters/HPGL_plotter.cpp b/common/plotters/HPGL_plotter.cpp index b62dfa269e..a090b88bf4 100644 --- a/common/plotters/HPGL_plotter.cpp +++ b/common/plotters/HPGL_plotter.cpp @@ -670,7 +670,7 @@ void HPGL_PLOTTER::FlashPadCustom( const wxPoint& aPadPos, const wxSize& aSize, cornerList.clear(); cornerList.reserve( poly.PointCount() ); - for( int ii = 1; ii < poly.PointCount(); ++ii ) + for( int ii = 0; ii < poly.PointCount(); ++ii ) cornerList.emplace_back( poly.CPoint( ii ).x, poly.CPoint( ii ).y ); if( cornerList.back() != cornerList.front() )