mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:09:21 +02:00
Converter: Fix an offset error in FromMapToGrid function.
git-svn-id: trunk@26343 -
This commit is contained in:
parent
78b2105e0c
commit
7511dca4eb
@ -86,8 +86,8 @@ begin
|
|||||||
try
|
try
|
||||||
AGrid.BeginUpdate;
|
AGrid.BeginUpdate;
|
||||||
AMap.GetNames(List);
|
AMap.GetNames(List);
|
||||||
for i:=0 to List.Count-1 do begin
|
for i:=1 to List.Count do begin // Skip the fixed row in grid.
|
||||||
OldIdent:=List[i];
|
OldIdent:=List[i-1];
|
||||||
NewIdent:=AMap[OldIdent];
|
NewIdent:=AMap[OldIdent];
|
||||||
if AGrid.RowCount<i+2 then
|
if AGrid.RowCount<i+2 then
|
||||||
AGrid.RowCount:=i+2; // Leave one empty row to the end.
|
AGrid.RowCount:=i+2; // Leave one empty row to the end.
|
||||||
|
Loading…
Reference in New Issue
Block a user