mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
Cocoa: Fix "Access Violation" in TCocoaWSCustomListView.SetImageList(), by Michalis Kamburelis
This commit is contained in:
parent
346b890f26
commit
fc41ca2ea9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user