From 2aec1cfc26ff460c0fa6d5b59b230bfe65dd5b29 Mon Sep 17 00:00:00 2001 From: Arin Alex Date: Fri, 1 Apr 2016 23:39:07 +0300 Subject: [PATCH] Fixed refresh pages --- limereport/lrpreviewreportwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/limereport/lrpreviewreportwidget.cpp b/limereport/lrpreviewreportwidget.cpp index 7becc8d..d1a8142 100644 --- a/limereport/lrpreviewreportwidget.cpp +++ b/limereport/lrpreviewreportwidget.cpp @@ -75,6 +75,7 @@ PreviewReportWidget::~PreviewReportWidget() void PreviewReportWidget::initPreview() { + ui->graphicsView->resetMatrix(); ui->graphicsView->setScene(d_ptr->m_previewPage); ui->graphicsView->centerOn(0, 0); ui->graphicsView->scale(0.5,0.5); @@ -207,7 +208,7 @@ void PreviewReportWidget::refreshPages() ReportPages pages = d_ptr->m_report->renderToPages(); d_ptr->m_report->dataManager()->setDesignTime(true); if (pages.count()>0){ - d_ptr->m_reportPages = pages; + d_ptr->setPages(pages); if (!d_ptr->m_reportPages.isEmpty()){ d_ptr->m_previewPage->setPageItems(d_ptr->m_reportPages); d_ptr->m_changingPage = true;