diff --git a/components/ideintf/objectinspector.pp b/components/ideintf/objectinspector.pp index 0cb2b1c7c07..f5b2c49ba23 100644 --- a/components/ideintf/objectinspector.pp +++ b/components/ideintf/objectinspector.pp @@ -4094,7 +4094,7 @@ constructor TObjectInspectorDlg.Create(AnOwner: TComponent); OnDblClick := @ComponentTreeDblClick; OnKeyDown := @ComponentTreeKeyDown; OnSelectionChanged := @ComponentTreeSelectionChanged; - OnNodeGetImageIndex := @OnVTNodeGetImageIndex; + OnComponentGetImageIndex := @OnVTNodeGetImageIndex; OnModified := @DoModified; Scrollbars := ssAutoBoth; PopupMenu := MainPopupMenu;