Skip to content

Commit

Permalink
Fix for #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Mar 11, 2023
1 parent 7cb1077 commit be1b214
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/VirtualTrees.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8092,6 +8092,17 @@ procedure TVirtualTreeColumns.FixPositions;
I: Integer;

begin
// Fox positions that too large, see #1179
for I := 0 to Count - 1 do
begin
if Integer(Items[I].Position) >= Count then
begin
UpdatePositions(True);
break;
end;
end; // for

// Update position array
for I := 0 to Count - 1 do
FPositionToIndex[Items[I].Position] := I;

Expand Down

0 comments on commit be1b214

Please sign in to comment.