From 205529f52c8c7acb00126e102160e223f11ee459 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 6 Dec 2022 21:42:17 +0000 Subject: [PATCH] GridPrinter: Fix grid titles missing when there are no fixedcols. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8636 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/gridprinter/source/gridprn.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gridprinter/source/gridprn.pas b/components/gridprinter/source/gridprn.pas index 98bfa6456..eb55d822c 100644 --- a/components/gridprinter/source/gridprn.pas +++ b/components/gridprinter/source/gridprn.pas @@ -864,7 +864,7 @@ begin exit; lGrid := TGridAccess(FGrid); - if lGrid.Columns.Enabled and (FFixedCols > 0) and (ACol >= FFixedCols) and (ARow = 0) and (FFixedRows > 0) then + if lGrid.Columns.Enabled and (ACol >= FFixedCols) and (ARow = 0) and (FFixedRows > 0) then begin col := lGrid.Columns[ACol - FFixedCols]; Result := col.Title.Caption;