lcl: fix TCustomListBox.GetItemHeight (#0012527, #0012441 by Zeljan)

git-svn-id: trunk@17163 -
This commit is contained in:
paul 2008-10-31 08:42:23 +00:00
parent ae817f22ad
commit a8e65749a5

View File

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