ValEdit: fix bug in SetOptions (once goColMoving was set, it wasn't possible to change options anymore).

git-svn-id: trunk@40225 -
This commit is contained in:
bart 2013-02-09 16:09:25 +00:00
parent b3c2eafeb0
commit b48441883c

View File

@ -686,8 +686,10 @@ end;
procedure TValueListEditor.SetOptions(const AValue: TGridOptions);
begin
if not (goColMoving in Options) then
inherited Options := AValue;
if not (goColMoving in AValue) then
inherited Options := AValue
else
inherited Options := AValue - [goColMoving];
end;
procedure TValueListEditor.SetStrings(const AValue: TValueListStrings);