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.
|
// Deletes nodes which are marked as being cutted.
|
||||||
|
|
||||||
var
|
var
|
||||||
Run: PVirtualNode;
|
Run, ToDelete: PVirtualNode;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|
||||||
if tsCutPending in FStates then
|
if tsCutPending in FStates then
|
||||||
begin
|
begin
|
||||||
Run := FRoot.FirstChild;
|
Run := FRoot.FirstChild;
|
||||||
while Assigned(Run) do
|
while Assigned(Run) do
|
||||||
begin
|
begin
|
||||||
if vsCutOrCopy in Run.States then
|
if vsCutOrCopy in Run.States then
|
||||||
DeleteNode(Run);
|
begin
|
||||||
|
ToDelete := Run;
|
||||||
|
Run := GetNextNoInit(Run);
|
||||||
|
DeleteNode(ToDelete);
|
||||||
|
end
|
||||||
|
else
|
||||||
Run := GetNextNoInit(Run);
|
Run := GetNextNoInit(Run);
|
||||||
end;
|
end;
|
||||||
DoStateChange([], [tsCutPending]);
|
DoStateChange([], [tsCutPending]);
|
||||||
|
Reference in New Issue
Block a user