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:
juha 2012-07-22 06:55:31 +00:00
parent ecbd0c365e
commit 9884894f1b

View File

@ -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);