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:
zeljko 2015-03-02 12:39:23 +00:00
parent aa72b32e77
commit 12d74d7a9b

View File

@ -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');