From 6e895e9423f533884d28683dc857ce900517c384 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 9 Jan 2017 18:29:56 +0300 Subject: [PATCH] "Datasource not found" suppressed for empty data source at subdetail band --- limereport/lrreportrender.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/limereport/lrreportrender.cpp b/limereport/lrreportrender.cpp index 4158f49..2b061d8 100644 --- a/limereport/lrreportrender.cpp +++ b/limereport/lrreportrender.cpp @@ -638,7 +638,9 @@ void ReportRender::renderChildFooter(BandDesignIntf *parent, BandPrintMode print void ReportRender::renderChildBands(BandDesignIntf *parentBand) { foreach(BandDesignIntf* band,parentBand->childrenByType(BandDesignIntf::SubDetailBand)){ - IDataSource* ds = m_datasources->dataSource(band->datasourceName()); + IDataSource* ds = 0; + if (!band->datasourceName().isEmpty()) + ds = m_datasources->dataSource(band->datasourceName()); if (ds) ds->first(); renderChildHeader(band,PrintAlwaysPrintable); renderDataBand(band);