Finish 1.4.126

This commit is contained in:
Arin Alexander 2019-04-11 11:53:32 +03:00
commit 6a32cdd58a

View File

@ -59,7 +59,7 @@ void PreviewReportWidgetPrivate::setPages(ReportPages pages)
PageItemDesignIntf::Ptr PreviewReportWidgetPrivate::currentPage() 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); return m_reportPages.at(m_currentPage-1);
else return PageItemDesignIntf::Ptr(0); else return PageItemDesignIntf::Ptr(0);
} }