mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:09:19 +02:00
Carbon: fixed range check error when setting column width in TListView. Patch by C Western. issue #27581
git-svn-id: trunk@48093 -
This commit is contained in:
parent
aa72b32e77
commit
12d74d7a9b
@ -428,6 +428,8 @@ end;
|
||||
|
||||
procedure TCarbonListColumn.SetHeaderWidth(AWidth: Integer);
|
||||
begin
|
||||
if AWidth < 0 then
|
||||
AWidth := 0;
|
||||
OSError(SetDataBrowserTableViewNamedColumnWidth(FOwner.Widget, PropertyID, AWidth),
|
||||
Self, 'SetHeaderWidth', 'SetDataBrowserTableViewNamedColumnWidth');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user