Fix reserve call with the wrong source for size
This commit is contained in:
parent
1005f75cdb
commit
ca4da4706a
|
@ -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 )
|
void GRAPHICS_IMPORTER_PCBNEW::AddPolygon( const std::vector< VECTOR2D >& aVertices, double aWidth )
|
||||||
{
|
{
|
||||||
std::vector< wxPoint > convertedPoints;
|
std::vector<wxPoint> convertedPoints;
|
||||||
convertedPoints.reserve( convertedPoints.size() );
|
convertedPoints.reserve( aVertices.size() );
|
||||||
|
|
||||||
for( const VECTOR2D& precisePoint : aVertices )
|
for( const VECTOR2D& precisePoint : aVertices )
|
||||||
convertedPoints.emplace_back( MapCoordinate( precisePoint ) );
|
convertedPoints.emplace_back( MapCoordinate( precisePoint ) );
|
||||||
|
|
Loading…
Reference in New Issue