lcl: dbgrids: workaround for FPC 3 issue #31532 (comment)

git-svn-id: trunk@54445 -
This commit is contained in:
ondrej 2017-03-18 13:51:19 +00:00
parent 34d80e9305
commit 5b2322946b

View File

@ -3625,7 +3625,7 @@ begin
else
begin
aPos := FDataLink.DataSet.RecNo - 1; // RecNo is 1 based
FDataLink.DataSet.UpdateCursorPos;
FDataLink.DataSet.UpdateCursorPos; // FPC 3 bug #31532 workaround
end;
if aPos<0 then aPos:=0;
if aRange=0 then aRange:=1; // there's always 1 (new) row