LCL, Grids: fix copying cells on first row when there are custom columns and FixedRows=0, patch from K155LA3, issue #0030608

git-svn-id: trunk@52983 -
This commit is contained in:
jesus 2016-09-16 23:39:48 +00:00
parent 1b2aca6220
commit dff5e86d21

View File

@ -10505,7 +10505,7 @@ begin
if not Columns[k].Visible then if not Columns[k].Visible then
continue; continue;
if (aRow=0) then if (aRow=0) and (FixedRows>0) then
SelStr := SelStr + QuoteText(Columns[k].Title.Caption) SelStr := SelStr + QuoteText(Columns[k].Title.Caption)
else else
SelStr := SelStr + QuoteText(Cells[aCol,aRow]); SelStr := SelStr + QuoteText(Cells[aCol,aRow]);