LazControls: Optimize TTreeFilterBranch.Move(). A total redraw is not needed.

This commit is contained in:
Juha 2023-03-26 17:22:35 +03:00
parent 785fdec71b
commit de07d13b01

View File

@ -397,11 +397,13 @@ begin
end;
procedure TTreeFilterBranch.Move(CurIndex, NewIndex: integer);
var
item: TTreeNode;
begin
fOwner.StoreSelection;
item := fRootNode.Items[CurIndex];
item.Index := NewIndex;
item.MakeVisible;
fOriginalData.Move(CurIndex, NewIndex);
InvalidateBranch;
fOwner.RestoreSelection;
end;
{ TFileNameItem }