diff --git a/src/lrreportengine.cpp b/src/lrreportengine.cpp index 373e627..fcb482a 100644 --- a/src/lrreportengine.cpp +++ b/src/lrreportengine.cpp @@ -518,8 +518,9 @@ ReportPages ReportEnginePrivate::renderToPages() ReportPages result = m_reportRender->renderPageToPages(m_pages.at(0)); emit renderFinished(); return result; - }else return ReportPages(); - m_reportRender.clear(); + }else { + return ReportPages(); + } } QString ReportEnginePrivate::lastError()