mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 12:00:15 +02:00
lcl: dbgrids: workaround for FPC 3 issue #31532 (comment)
git-svn-id: trunk@54445 -
This commit is contained in:
parent
34d80e9305
commit
5b2322946b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user