We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11e7b6f commit 33828f6Copy full SHA for 33828f6
1 file changed
Source/VirtualTrees.BaseTree.pas
@@ -16300,6 +16300,8 @@ procedure TBaseVirtualTree.DeleteNodes(const pNodes: TNodeArray);
16300
I: Integer;
16301
LevelChange: Boolean;
16302
begin
16303
+ if Length(pNodes) = 0 then
16304
+ exit; // Prevent range error below when empty array is passen. See issue #1288
16305
BeginUpdate;
16306
try
16307
for I := High(pNodes) downto 1 do
0 commit comments