Flip arc endpoints when mirroring in FPEditor.

Fixes https://gitlab.com/kicad/code/kicad/issues/10550
This commit is contained in:
Jeff Young 2022-01-21 15:00:49 +00:00
parent 8e4369f998
commit 7f6bc28f87
1 changed files with 6 additions and 0 deletions

View File

@ -307,6 +307,12 @@ void FP_SHAPE::Mirror( const VECTOR2I& aCentre, bool aMirrorAroundXAxis )
MIRROR( m_bezierC2_0.x, aCentre.x );
}
if( GetShape() == SHAPE_T::ARC )
{
std::swap( m_start, m_end );
std::swap( m_start0, m_end0 );
}
if( GetShape() == SHAPE_T::BEZIER )
RebuildBezierToSegmentsPointsList( GetWidth() );