7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 22:51:41 +00:00

Fix reserve call with the wrong source for size

This commit is contained in:
Marek Roszko 2022-08-16 23:38:08 -04:00
parent c2e0c585f8
commit 98b3904c51

View File

@ -125,7 +125,7 @@ void GRAPHICS_IMPORTER_PCBNEW::AddArc( const VECTOR2D& aCenter, const VECTOR2D&
void GRAPHICS_IMPORTER_PCBNEW::AddPolygon( const std::vector< VECTOR2D >& aVertices, double aWidth )
{
std::vector<VECTOR2I> convertedPoints;
convertedPoints.reserve( convertedPoints.size() );
convertedPoints.reserve( aVertices.size() );
for( const VECTOR2D& precisePoint : aVertices )
convertedPoints.emplace_back( MapCoordinate( precisePoint ) );