mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 16:49:07 +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,8 +9887,11 @@ begin
|
|||||||
try
|
try
|
||||||
L.Text := TheText;
|
L.Text := TheText;
|
||||||
for j:=0 to L.Count-1 do begin
|
for j:=0 to L.Count-1 do begin
|
||||||
|
if j+StartRow >= RowCount then
|
||||||
|
break;
|
||||||
CollectCols(L[j]);
|
CollectCols(L[j]);
|
||||||
for i:=0 to SubL.Count-1 do
|
for i:=0 to SubL.Count-1 do
|
||||||
|
if (i+StartCol<ColCount) and (not GetColumnReadonly(i+StartCol)) then
|
||||||
Cells[i + StartCol, j + StartRow] := SubL[i];
|
Cells[i + StartCol, j + StartRow] := SubL[i];
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user