LCL: Fix a bug in ValueListEditor when reading / writing value by key (Values['Key'])

git-svn-id: trunk@40193 -
This commit is contained in:
juha 2013-02-06 10:53:57 +00:00
parent 1dd55f7ae0
commit 053dfd2a1a

View File

@ -686,7 +686,7 @@ var
begin begin
Result := ''; Result := '';
I := Strings.IndexOfName(Key); I := Strings.IndexOfName(Key);
if Row > -1 then begin if I > -1 then begin
Inc(I, FixedRows); Inc(I, FixedRows);
Result:=Cells[1,I]; Result:=Cells[1,I];
end; end;
@ -697,7 +697,7 @@ var
I: Integer; I: Integer;
begin begin
I := Strings.IndexOfName(Key); I := Strings.IndexOfName(Key);
if Row > -1 then begin if I > -1 then begin
Inc(I, FixedRows); Inc(I, FixedRows);
Cells[1,I]:=AValue; Cells[1,I]:=AValue;
end end