mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +03:00
Finish 1.4.126
This commit is contained in:
commit
3ae2c30cdd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user