IdeIntf: Exit from TEnumPropertyEditor.SetValue when invalid value is given. Prevents an AV later. Reverts r185 from 2001-02-19.

git-svn-id: trunk@55831 -
This commit is contained in:
juha 2017-09-10 09:48:04 +00:00
parent 7fc25997ba
commit 3c4942286a

View File

@ -3658,7 +3658,7 @@ begin
I := GetEnumValue(GetPropType, NewValue);
if I < 0 then begin
{raise EPropertyError.CreateRes(@SInvalidPropertyValue)};
// exit;
exit;
end;
SetOrdValue(I);
end;