diff --git a/lcl/include/customlistbox.inc b/lcl/include/customlistbox.inc index 7b6f18ea34..36a9b192fe 100644 --- a/lcl/include/customlistbox.inc +++ b/lcl/include/customlistbox.inc @@ -389,7 +389,7 @@ end; function TCustomListBox.GetItemHeight: Integer; begin - if HandleAllocated and (Style <> lbOwnerDrawVariable) then + if HandleAllocated and (Style = lbStandard) then begin with ItemRect(TopIndex) do Result := Bottom - Top;