mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 05:38:25 +02:00
LCL: fix the bug in TListItems.Exchange()
CacheIndex has been changed from AIndex1 to AIndex2
This commit is contained in:
parent
d5ed1772b9
commit
72f42b17e1
@ -160,7 +160,7 @@ begin
|
||||
Include(Owner.FFlags, lffItemsMoving);
|
||||
try
|
||||
FItems.Exchange(AIndex1, AIndex2);
|
||||
FCacheIndex := AIndex1;
|
||||
FCacheIndex := AIndex2;
|
||||
FCacheItem := AItem;
|
||||
if not Owner.OwnerData and WSUpdateAllowed then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user