Remove arc end swapping when parsing.

See: 2366b06e77 (note_839061664)
This commit is contained in:
Jeff Young 2022-02-11 13:09:41 +00:00
parent 3deaf902bb
commit 940e03e567
1 changed files with 0 additions and 7 deletions

View File

@ -784,13 +784,6 @@ LIB_SHAPE* SCH_LEGACY_PLUGIN_CACHE::loadArc( std::unique_ptr<LIB_SYMBOL>& aSymbo
arcEnd.x = Mils2Iu( parseInt( aReader, line, &line ) );
arcEnd.y = Mils2Iu( parseInt( aReader, line, &line ) );
// The previous wxDC-based drawing routines used start point and end point and always
// drew counter-clockwise. The new GAL draw takes center, radius and start/end angles.
// All of these values were stored in the file with little indication of which takes
// precedence, so we need to jump through some hoops to ensure the correct winding.
if( TRANSFORM().MapAngles( &angle1, &angle2 ) != ( ( angle1 - angle2 ).Normalize180() > ANGLE_0 ) )
std::swap( arcStart, arcEnd );
arc->SetStart( arcStart );
arc->SetEnd( arcEnd );
}