mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +02:00
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:
parent
13a122abd6
commit
35fd92cb93
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user