mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 07:31:46 +01:00
LCL: TListBox: fixed seting ItemHeight to 0
git-svn-id: trunk@10457 -
This commit is contained in:
parent
fd550f95c3
commit
4716bded24
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user