mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:09:41 +02:00
LCL: TCustomListView: reset FCacheIndex and FCacheItems before sorting list, otherwise we'll have unexpected results. issue #22218
git-svn-id: trunk@37564 -
This commit is contained in:
parent
64f7c37ce8
commit
59834c98ec
@ -900,6 +900,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Items.FCacheIndex := -1;
|
||||||
|
Items.FCacheItem := nil;
|
||||||
|
|
||||||
FListItems.FItems.Sort(@CompareItems);
|
FListItems.FItems.Sort(@CompareItems);
|
||||||
TWSCustomListViewClass(WidgetSetClass).SetSort(Self, FSortType,
|
TWSCustomListViewClass(WidgetSetClass).SetSort(Self, FSortType,
|
||||||
FSortColumn, FSortDirection);
|
FSortColumn, FSortDirection);
|
||||||
|
Loading…
Reference in New Issue
Block a user