LCL: TListBox: fixed seting ItemHeight to 0

git-svn-id: trunk@10457 -
This commit is contained in:
mattias 2007-01-16 10:31:50 +00:00
parent fd550f95c3
commit 4716bded24

View File

@ -332,7 +332,7 @@ end;
procedure TCustomListBox.SetItemHeight(Value: Integer);
begin
if (FItemHeight <> Value) and (Value > 0) then begin
if (FItemHeight <> Value) and (Value >= 0) then begin
FItemHeight := Value;
if (not HandleAllocated) or (csLoading in ComponentState) then exit;
// TODO: remove RecreateWnd