mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 12:20:32 +02:00
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:
parent
7fc25997ba
commit
3c4942286a
@ -3658,7 +3658,7 @@ begin
|
||||
I := GetEnumValue(GetPropType, NewValue);
|
||||
if I < 0 then begin
|
||||
{raise EPropertyError.CreateRes(@SInvalidPropertyValue)};
|
||||
// exit;
|
||||
exit;
|
||||
end;
|
||||
SetOrdValue(I);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user