Object Inspector: Set ComboBox editor's ItemHeight again. Lazarus built with QT crashes otherwise when Color combobox list is opened.

git-svn-id: trunk@46966 -
This commit is contained in:
juha 2014-11-22 18:43:13 +00:00
parent 00e70eb738
commit 686309b70a

View File

@ -2632,8 +2632,11 @@ begin
if not CompareTopLeft(FCurrentEdit.BoundsRect,EditCompRect) then
begin
FCurrentEdit.BoundsRect:=EditCompRect;
// if FCurrentEdit is TComboBox then
// TComboBox(FCurrentEdit).ItemHeight:=EditCompRect.Bottom-EditCompRect.Top-6;
// If ItemHeight is not set, Lazarus built with QT crashes
// when Color combobox list is opened. Why is that?
if FCurrentEdit is TComboBox then
TComboBox(FCurrentEdit).ItemHeight:=EditCompRect.Bottom-EditCompRect.Top-6;
//
FCurrentEdit.Invalidate;
end;
end;