Fix setting/fetching angle out of footprint angle control.

Fixes https://gitlab.com/kicad/code/kicad/issues/10176
This commit is contained in:
Jeff Young 2021-12-31 23:25:56 +00:00
parent b85fb9137f
commit dc2e93cd0f
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ bool DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow()
m_BoardSideCtrl->SetSelection( (m_footprint->GetLayer() == B_Cu) ? 1 : 0 );
m_orientation.SetDoubleValue( m_footprint->GetOrientation() / 10.0 );
m_orientation.SetDoubleValue( m_footprint->GetOrientation() );
m_cbLocked->SetValue( m_footprint->IsLocked() );
m_cbLocked->SetToolTip( _( "Locked footprints cannot be freely moved and oriented on the "
@ -444,7 +444,7 @@ bool DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow()
m_footprint->SetAttributes( attributes );
double orient = m_orientation.GetDoubleValue() * 10.0;
double orient = m_orientation.GetDoubleValue();
if( m_footprint->GetOrientation() != orient )
m_footprint->Rotate( m_footprint->GetPosition(), orient - m_footprint->GetOrientation() );