mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 23:30:29 +02:00
* Fix bug #33388, name is lost when doing loadfromjson
git-svn-id: trunk@38464 -
This commit is contained in:
parent
08c0239d1e
commit
c1f8a15e32
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user