ideintf: don't use canvas of ValueComboBox while handle is not assigned (fixes bug #0016246)

git-svn-id: trunk@24636 -
This commit is contained in:
paul 2010-04-15 22:10:28 +00:00
parent 13a122abd6
commit 35fd92cb93

View File

@ -1468,7 +1468,7 @@ procedure TOICustomPropertyGrid.ValueComboBoxMeasureItem(Control: TWinControl;
var
CurRow: TOIPropertyGridRow;
begin
if (FItemIndex >= 0) and (FItemIndex < FRows.Count) then
if (FItemIndex >= 0) and (FItemIndex < FRows.Count) and (ValueComboBox.HandleAllocated) then
begin
CurRow := Rows[FItemIndex];
CurRow.Editor.ListMeasureHeight('Fj', Index, ValueComboBox.Canvas, AHeight);