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
(cherry picked from commit 909a25c147
)
This commit is contained in:
parent
1956c074ba
commit
bc26ccf9f2
|
@ -509,7 +509,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:
|
||||
|
@ -523,7 +523,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