LCL, check range and readonly columns on pasting data into grid, from Tomasz Wieckowski, issue #18213

git-svn-id: trunk@32504 -
This commit is contained in:
jesus 2011-09-24 18:21:59 +00:00
parent 230dedbde2
commit 6aa2dad49f

View File

@ -9887,9 +9887,12 @@ begin
try
L.Text := TheText;
for j:=0 to L.Count-1 do begin
if j+StartRow >= RowCount then
break;
CollectCols(L[j]);
for i:=0 to SubL.Count-1 do
Cells[i + StartCol, j + StartRow] := SubL[i];
if (i+StartCol<ColCount) and (not GetColumnReadonly(i+StartCol)) then
Cells[i + StartCol, j + StartRow] := SubL[i];
end;
finally
SubL.Free;