Browse Source

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.
pull/15/head
jean-pierre charras 6 years ago
parent
commit
115e1e33da
  1. 4
      pcbnew/class_module.cpp

4
pcbnew/class_module.cpp

@ -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;

Loading…
Cancel
Save