RTTI: Fix a crash in TTIGrid with boolean properties. Issue #35583

git-svn-id: branches/fixes_2_0@63480 -
This commit is contained in:
mattias 2020-06-28 17:03:03 +00:00
parent 6290d23d56
commit 3877144c0a

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;