* Micro-optimization. Fix issue #39617

This commit is contained in:
Michaël Van Canneyt 2022-03-08 11:35:24 +01:00
parent 2f28c5596f
commit 2a19e152b7

View File

@ -1476,6 +1476,8 @@ Var
Obj : TObject;
Str : String;
begin
if (CurIndex=NewIndex) then
Exit;
BeginUpdate;
Try
Obj:=Objects[CurIndex];