pcbnew: Correct polygon flipping in custom pads
Custom pads are referenced to the anchor pad 0-point, so flipping the polygon should be about 0 and not the flip point. Fixes: lp:1831311 * https://bugs.launchpad.net/kicad/+bug/1831311
This commit is contained in:
parent
aa3aafc4ff
commit
909a25c147
|
@ -496,7 +496,7 @@ void D_PAD::MirrorXPrimitives( int aX )
|
|||
{
|
||||
case S_POLYGON: // polygon
|
||||
for( unsigned jj = 0; jj < primitive.m_Poly.size(); jj++ )
|
||||
MIRROR( primitive.m_Poly[jj].x, aX );
|
||||
MIRROR( primitive.m_Poly[jj].x, 0 );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -510,7 +510,7 @@ void D_PAD::MirrorXPrimitives( int aX )
|
|||
SHAPE_LINE_CHAIN& poly = m_customShapeAsPolygon.Outline( cnt );
|
||||
|
||||
for( int ii = 0; ii < poly.PointCount(); ++ii )
|
||||
MIRROR( poly.Point( ii ).x, aX );
|
||||
MIRROR( poly.Point( ii ).x, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue