Special case unspecified property value (i.e. <...>)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13200
This commit is contained in:
Roberto Fernandez Bautista 2022-12-18 17:06:26 +01:00
parent 035ff27b76
commit e3b8475a3d
1 changed files with 2 additions and 2 deletions

View File

@ -94,10 +94,10 @@ void PG_UNIT_EDITOR::UpdateControl( wxPGProperty* aProperty, wxWindow* aCtrl ) c
{
m_unitBinder->ChangeValue( var.GetDouble() );
}
else
else if( !aProperty->IsValueUnspecified() )
{
wxFAIL_MSG( wxT( "PG_UNIT_EDITOR should only be used with numeric properties!" ) );
}
}
}