0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

Report preview scrolling has been fixed

This commit is contained in:
Arin Alexander 2019-04-11 11:50:52 +03:00
parent a0ab774a2a
commit a2b4fc55fe

View File

@ -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);
}