From a2b4fc55fe202f4f9899b4eed50d99f8867b100d Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 11 Apr 2019 11:50:52 +0300 Subject: [PATCH] Report preview scrolling has been fixed --- limereport/lrpreviewreportwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/lrpreviewreportwidget.cpp b/limereport/lrpreviewreportwidget.cpp index 2776aeb..4c54ecc 100644 --- a/limereport/lrpreviewreportwidget.cpp +++ b/limereport/lrpreviewreportwidget.cpp @@ -54,7 +54,7 @@ void PreviewReportWidgetPrivate::setPages(ReportPages pages) PageItemDesignIntf::Ptr PreviewReportWidgetPrivate::currentPage() { - if (m_reportPages.count()>0 && m_reportPages.count()>=m_currentPage) + if (m_reportPages.count()>0 && m_reportPages.count() >= m_currentPage && m_currentPage > 0) return m_reportPages.at(m_currentPage-1); else return PageItemDesignIntf::Ptr(0); }