Pay attention to indeterminate state in onUnitsChanged().

Fixes https://gitlab.com/kicad/code/kicad/issues/13127
This commit is contained in:
Jeff Young 2022-12-12 16:50:13 +00:00
parent 4b71295eef
commit 2a32bc4372
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ void UNIT_BINDER::onUnitsChanged( wxCommandEvent& aEvent )
SetUnits( provider->GetUserUnits() );
m_iuScale = &provider->GetIuScale();
SetValue( temp );
if( !IsIndeterminate() )
SetValue( temp );
}
aEvent.Skip();