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:
parent
c84619cd7f
commit
83d7c731d3
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue