LazReport, make ObjectInspector remember the last edited property on selecting objects, issue #25845

git-svn-id: trunk@44417 -
This commit is contained in:
jesus 2014-03-13 08:01:27 +00:00
parent 221bff034a
commit 95e89c5bda

View File

@ -7583,9 +7583,19 @@ begin
if (Obj=nil) or (Obj is TPersistent) then
begin
FSelectedObject:=Obj;
fPropertyGrid.TIObject := TPersistent(Obj);
if Obj <> nil then
if Obj=nil then
fPropertyGrid.Selection := nil
else
begin
fcboxObjList.ItemIndex := fcboxObjList.Items.IndexOfObject(Obj);
NewSel := TPersistentSelectionList.Create;
try
NewSel.Add(TfrView(Obj));
fPropertyGrid.Selection := NewSel;
finally
NewSel.Free;
end;
end;
end
else
if Obj is TFpList then