RTTI: Fix a crash in TTIGrid with boolean properties. Issue #35583, patch from greenfil.

git-svn-id: trunk@63345 -
This commit is contained in:
juha 2020-06-11 21:12:30 +00:00
parent 48f187bdd5
commit 0a06f431f1

View File

@ -1015,7 +1015,7 @@ begin
NewEditor:=nil;
try
EditorClass:=TPropertyEditorClass(GridProperty.Editor.ClassType);
NewEditor:=EditorClass.Create(nil,1);
NewEditor:=EditorClass.Create(FHeaderPropHook,1);
NewEditor.SetPropEntry(0,CurObject,GridProperty.PropInfo);
NewEditor.Initialize;
aPropEditor := NewEditor;