mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 19:17:52 +01:00
LCL: Prevent an error with Pg Up/Down in DbGrid on empty Dataset. Issue #22474, patch from Stefano
git-svn-id: trunk@37995 -
This commit is contained in:
parent
ecbd0c365e
commit
9884894f1b
@ -2154,7 +2154,7 @@ begin
|
||||
end;
|
||||
|
||||
VK_NEXT:
|
||||
begin
|
||||
if ValidDataSet then begin
|
||||
doOnKeyDown;
|
||||
if Key<>0 then begin
|
||||
doOperation(opMoveBy, VisibleRowCount);
|
||||
@ -2164,7 +2164,7 @@ begin
|
||||
end;
|
||||
|
||||
VK_PRIOR:
|
||||
begin
|
||||
if ValidDataSet then begin
|
||||
doOnKeyDown;
|
||||
if Key<>0 then begin
|
||||
doOperation(opMoveBy, -VisibleRowCount);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user