Skip to content

Commit

Permalink
Fix for #1228: Columns EndUpdate and duplicate position
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Nov 16, 2023
1 parent 26deba0 commit bf359e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/VirtualTrees.Header.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4404,6 +4404,7 @@ procedure TVirtualTreeColumns.FixPositions;
I : Integer;

begin
UpdatePositions(True);
// Fix positions that too large, see #1179
for I := 0 to Count - 1 do
begin
Expand Down Expand Up @@ -5248,6 +5249,7 @@ function TVirtualTreeColumns.GetPreviousColumn(Column : TColumnIndex) : TColumnI
Result := FPositionToIndex[Position - 1]
else
Result := InvalidColumn;
Assert(Position <> Result, 'The previous column must not have the same position as the given column.');
end;
end;

Expand Down

0 comments on commit bf359e1

Please sign in to comment.