From ca4da4706a7c8d45d393a419e7f785779da32cd9 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 16 Aug 2022 23:38:08 -0400 Subject: [PATCH] Fix reserve call with the wrong source for size --- pcbnew/import_gfx/graphics_importer_pcbnew.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/import_gfx/graphics_importer_pcbnew.cpp b/pcbnew/import_gfx/graphics_importer_pcbnew.cpp index 629420e01b..558edde242 100644 --- a/pcbnew/import_gfx/graphics_importer_pcbnew.cpp +++ b/pcbnew/import_gfx/graphics_importer_pcbnew.cpp @@ -122,8 +122,8 @@ void GRAPHICS_IMPORTER_PCBNEW::AddArc( const VECTOR2D& aCenter, const VECTOR2D& void GRAPHICS_IMPORTER_PCBNEW::AddPolygon( const std::vector< VECTOR2D >& aVertices, double aWidth ) { - std::vector< wxPoint > convertedPoints; - convertedPoints.reserve( convertedPoints.size() ); + std::vector convertedPoints; + convertedPoints.reserve( aVertices.size() ); for( const VECTOR2D& precisePoint : aVertices ) convertedPoints.emplace_back( MapCoordinate( precisePoint ) );