mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 09:20:49 +02:00
LCL: Fix a bug in ValueListEditor when reading / writing value by key (Values['Key'])
git-svn-id: trunk@40193 -
This commit is contained in:
parent
1dd55f7ae0
commit
053dfd2a1a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user