From 35fd92cb9366ebd42e92a3ac2cb5e6e187d1493d Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 15 Apr 2010 22:10:28 +0000 Subject: [PATCH] ideintf: don't use canvas of ValueComboBox while handle is not assigned (fixes bug #0016246) git-svn-id: trunk@24636 - --- ideintf/objectinspector.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ideintf/objectinspector.pp b/ideintf/objectinspector.pp index 335ccf1108..ffc934e49d 100644 --- a/ideintf/objectinspector.pp +++ b/ideintf/objectinspector.pp @@ -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);