mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 02:19:39 +02:00
LazControls: Optimize TTreeFilterBranch.Move(). A total redraw is not needed.
This commit is contained in:
parent
785fdec71b
commit
de07d13b01
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user