Flip arc endpoints when mirroring in FPEditor.

Fixes https://gitlab.com/kicad/code/kicad/issues/10550

(cherry picked from commit 7f6bc28f87)
This commit is contained in:
Jeff Young 2022-01-21 15:00:49 +00:00
parent dd7029ea07
commit 6d7659fb20
1 changed files with 6 additions and 0 deletions

View File

@ -305,6 +305,12 @@ void FP_SHAPE::Mirror( const wxPoint& 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( m_width );