From c460bc96be4f78b13580d97e87cf0fd298dc33d2 Mon Sep 17 00:00:00 2001 From: alexs75 Date: Tue, 24 Oct 2017 12:38:03 +0000 Subject: [PATCH] RxFPC:fix show last row in RxDBGrid git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6040 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/rx/trunk/rxdb/rxdbgrid.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/rx/trunk/rxdb/rxdbgrid.pas b/components/rx/trunk/rxdb/rxdbgrid.pas index 6a8d532fd..a846482c2 100644 --- a/components/rx/trunk/rxdb/rxdbgrid.pas +++ b/components/rx/trunk/rxdb/rxdbgrid.pas @@ -5229,13 +5229,15 @@ begin if FFooterOptions.Active then H:=H - GetDefaultRowHeight * FFooterOptions.RowCount; + Result := H div GetDefaultRowHeight; if rdgFilter in OptionsRx then Dec(Result, 1); if dgTitles in Options then - Dec(Result, 1); + //Dec(Result, 1); + Result:=Result - RowHeights[0] div GetDefaultRowHeight; end else Result := 1;