mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 07:56:36 +02:00
LCL, grids: update fixed cols/rows count on inserting a column/row in a fixed zone
git-svn-id: trunk@55766 -
This commit is contained in:
parent
a41f345980
commit
625ed6ca90
@ -6177,6 +6177,8 @@ begin
|
||||
if IsColumn then begin
|
||||
if Index>ColCount-1 then
|
||||
Index := ColCount-1;
|
||||
if Index<FixedCols then
|
||||
inc(FFixedCols);
|
||||
if columns.Enabled then begin
|
||||
Columns.InsertColumn(ColumnIndexFromGridColumn(index));
|
||||
ColRowInserted(true, index);
|
||||
@ -6188,6 +6190,8 @@ begin
|
||||
end else begin
|
||||
Frows.Insert(Index, pointer(-1));
|
||||
FGCache.AccumHeight.Insert(Index, nil);
|
||||
if Index<FixedRows then
|
||||
inc(FFixedRows);
|
||||
end;
|
||||
ColRowInserted(IsColumn, index);
|
||||
VisualChange;
|
||||
|
Loading…
Reference in New Issue
Block a user