mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 00:02:50 +02:00
Cocoa: Fix "Access Violation" in TCocoaWSCustomListView.SetImageList(), by Michalis Kamburelis
This commit is contained in:
parent
46b4ce12e9
commit
0c1f7c3b17
@ -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