mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 20:56:31 +02:00
LCL, grids: InsertRowWithValues adjust first the number of columns then insert row, fix insert a row in a fixed grid, issue #26943
git-svn-id: trunk@46766 -
This commit is contained in:
parent
02113e0100
commit
bd19001549
@ -10594,9 +10594,9 @@ procedure TCustomStringGrid.InsertRowWithValues(Index: Integer;
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
InsertColRow(false, Index);
|
|
||||||
if Length(Values) > ColCount then
|
if Length(Values) > ColCount then
|
||||||
ColCount := Length(Values);
|
ColCount := Length(Values);
|
||||||
|
InsertColRow(false, Index);
|
||||||
for i := 0 to Length(Values)-1 do
|
for i := 0 to Length(Values)-1 do
|
||||||
Cells[i, Index] := Values[i];
|
Cells[i, Index] := Values[i];
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user