Bug fix for OnEditorFilter (was not called for sub TPersistent). From Maciej.

git-svn-id: trunk@51090 -
This commit is contained in:
juha 2015-12-31 09:07:51 +00:00
parent f4b38428a6
commit 59e349c1ae

View File

@ -1985,6 +1985,9 @@ procedure TOICustomPropertyGrid.AddSubEditor(PropEditor:TPropertyEditor);
var NewRow:TOIPropertyGridRow;
NewIndex:integer;
begin
if not EditorFilter(PropEditor) then
Exit;
if PropEditor is TClassPropertyEditor then
(PropEditor as TClassPropertyEditor).SubPropsTypeFilter := FFilter;
if PropEditor is TClassPropertyEditor then