Pcbnew, plot poly in footprint: fix a bug introduced by my commit 3316f3

Polys in footprints were not moved, rotated to the right place.
This commit is contained in:
jean-pierre charras 2021-09-12 11:01:15 +02:00
parent c84619cd7f
commit 83d7c731d3
1 changed files with 4 additions and 3 deletions

View File

@ -636,10 +636,11 @@ void BRDITEMS_PLOTTER::PlotFootprintGraphicItem( const FP_SHAPE* aShape )
if( parentFootprint )
{
for( wxPoint corner : cornerList )
for( unsigned ii = 0; ii < cornerList.size(); ++ii )
{
RotatePoint( &corner, parentFootprint->GetOrientation() );
corner += parentFootprint->GetPosition();
wxPoint* corner = &cornerList[ii];
RotatePoint( corner, parentFootprint->GetOrientation() );
*corner += parentFootprint->GetPosition();
}
}