LCL: TListView: Fixed Access Violation switching OwnerData. Issue #31880

git-svn-id: trunk@55026 -
This commit is contained in:
michl 2017-05-20 20:47:32 +00:00
parent 7a3d5c7a3f
commit ef3093eb1b

View File

@ -1628,7 +1628,7 @@ begin
FListItems := TOwnerDataListItems.Create(Self);
end
else
CreateListItems;
FListItems := CreateListItems;
if HandleAllocated then
TWSCustomListViewClass(WidgetSetClass).SetOwnerData(Self, AValue);