dialog edit footprint: display fp orientation between -180 and + 180 instead of 0 ... 360 deg.

Previously, the wxTextCtrl was using 0 ... 360 but the predefined values are -90 to 180 deg.
This commit is contained in:
jean-pierre charras 2019-09-19 20:24:14 +02:00
parent 33606431cc
commit 115e1e33da
1 changed files with 2 additions and 2 deletions

View File

@ -1017,7 +1017,7 @@ void MODULE::Flip( const wxPoint& aCentre, bool aFlipLeftRight )
// Reverse mirror orientation.
m_Orient = -m_Orient;
NORMALIZE_ANGLE_POS( m_Orient );
NORMALIZE_ANGLE_180( m_Orient );
// Mirror pads to other side of board.
for( auto pad : m_pads )
@ -1157,7 +1157,7 @@ void MODULE::SetOrientation( double newangle )
{
double angleChange = newangle - m_Orient; // change in rotation
NORMALIZE_ANGLE_POS( newangle );
NORMALIZE_ANGLE_180( newangle );
m_Orient = newangle;