You've already forked lazarus-ccr
* Fix crash in TBaseVirtualTree.FinishCutOrCopy
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1049 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -25654,16 +25654,22 @@ procedure TBaseVirtualTree.FinishCutOrCopy;
|
||||
// Deletes nodes which are marked as being cutted.
|
||||
|
||||
var
|
||||
Run: PVirtualNode;
|
||||
Run, ToDelete: PVirtualNode;
|
||||
|
||||
begin
|
||||
|
||||
if tsCutPending in FStates then
|
||||
begin
|
||||
Run := FRoot.FirstChild;
|
||||
while Assigned(Run) do
|
||||
begin
|
||||
if vsCutOrCopy in Run.States then
|
||||
DeleteNode(Run);
|
||||
begin
|
||||
ToDelete := Run;
|
||||
Run := GetNextNoInit(Run);
|
||||
DeleteNode(ToDelete);
|
||||
end
|
||||
else
|
||||
Run := GetNextNoInit(Run);
|
||||
end;
|
||||
DoStateChange([], [tsCutPending]);
|
||||
|
Reference in New Issue
Block a user