Pay attention to indeterminate state in onUnitsChanged().
Fixes https://gitlab.com/kicad/code/kicad/issues/13127
This commit is contained in:
parent
4b71295eef
commit
2a32bc4372
|
@ -174,7 +174,8 @@ void UNIT_BINDER::onUnitsChanged( wxCommandEvent& aEvent )
|
||||||
SetUnits( provider->GetUserUnits() );
|
SetUnits( provider->GetUserUnits() );
|
||||||
m_iuScale = &provider->GetIuScale();
|
m_iuScale = &provider->GetIuScale();
|
||||||
|
|
||||||
SetValue( temp );
|
if( !IsIndeterminate() )
|
||||||
|
SetValue( temp );
|
||||||
}
|
}
|
||||||
|
|
||||||
aEvent.Skip();
|
aEvent.Skip();
|
||||||
|
|
Loading…
Reference in New Issue