mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 15:19:35 +02:00
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:
parent
230dedbde2
commit
6aa2dad49f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user