Don't update units for UNSCALED, PERCENT or DEGREES.
Fixes https://gitlab.com/kicad/code/kicad/issues/10020
(cherry picked from commit 27d8df1122
)
This commit is contained in:
parent
c02cadec2a
commit
0317185860
|
@ -114,12 +114,17 @@ void UNIT_BINDER::SetDataType( EDA_DATA_TYPE aDataType )
|
|||
|
||||
|
||||
void UNIT_BINDER::onUnitsChanged( wxCommandEvent& aEvent )
|
||||
{
|
||||
if( m_units != EDA_UNITS::UNSCALED
|
||||
&& m_units != EDA_UNITS::DEGREES
|
||||
&& m_units != EDA_UNITS::PERCENT )
|
||||
{
|
||||
int temp = (int) GetValue();
|
||||
|
||||
SetUnits( m_frame->GetUserUnits() );
|
||||
|
||||
SetValue( temp );
|
||||
}
|
||||
|
||||
aEvent.Skip();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue