7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 20:31:41 +00:00

Fix arc printing for flipped shapes.

This commit is contained in:
Jeff Young 2021-12-20 17:47:32 +00:00 committed by Wayne Stambaugh
parent bd0fbea044
commit 160328abc7

View File

@ -256,7 +256,7 @@ void LIB_SHAPE::print( const RENDER_SETTINGS* aSettings, const wxPoint& aOffset,
CalcArcAngles( t1, t2 );
if( NormalizeAngle180( t1 - t2 ) > 0 )
if( aTransform.MapAngles( &t1, &t2 ) == ( NormalizeAngle180( t1 - t2 ) > 0 ) )
std::swap( pt1, pt2 );
}