* Fix bug #33388, name is lost when doing loadfromjson

git-svn-id: trunk@38464 -
This commit is contained in:
michael 2018-03-09 08:39:46 +00:00
parent 08c0239d1e
commit c1f8a15e32

View File

@ -113,14 +113,17 @@ procedure TFPJSONReport.LoadFromJSON(aJSON: TJSONObject);
Var
R : TFPReportJSONStreamer;
N : String;
begin
N:=Name;
R:=TFPReportJSONStreamer.Create(Nil);
try
R.OwnsJSON:=False;
R.JSON:=aJSON;
ReadElement(R);
finally
Name:=N;
R.Free;
end;
end;