mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:19:20 +02:00
* Allow to load report that misses design data definitions
git-svn-id: trunk@55995 -
This commit is contained in:
parent
fd4150950b
commit
5ac6230db9
@ -1213,6 +1213,7 @@ begin
|
|||||||
rs.JSON := lJSON; // rs takes ownership of lJSON
|
rs.JSON := lJSON; // rs takes ownership of lJSON
|
||||||
try
|
try
|
||||||
DD:=lJSON.Get('DesignData',TJSONObject(Nil));
|
DD:=lJSON.Get('DesignData',TJSONObject(Nil));
|
||||||
|
if Assigned(DD) then
|
||||||
FReportDesignData.LoadFromJSON(DD);
|
FReportDesignData.LoadFromJSON(DD);
|
||||||
// We must do this before the report is loaded, so the pages/bands can find their data
|
// We must do this before the report is loaded, so the pages/bands can find their data
|
||||||
CreateReportDataSets;
|
CreateReportDataSets;
|
||||||
|
Loading…
Reference in New Issue
Block a user