Cocoa: Fix "Access Violation" in TCocoaWSCustomListView.SetImageList(), by Michalis Kamburelis

This commit is contained in:
rich2014 2024-06-03 08:38:56 +08:00
parent 46b4ce12e9
commit 0c1f7c3b17

View File

@ -1617,6 +1617,7 @@ begin
if not CheckParams(lCocoaLV, lTableLV, ALV) then Exit;
lTableLV.lclSetImagesInCell(Assigned(AValue));
if NOT Assigned(AValue) then Exit;
if AValue.Height < lTableLV.rowHeight-2 then Exit;
spacing:= lTableLV.intercellSpacing;
spacing.height:= lTableLV.rowHeight / 3 + 2;