mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Merge branch 'master' into 1.4
This commit is contained in:
commit
2cb5f8e71c
@ -16,6 +16,8 @@ namespace LimeReport {
|
|||||||
|
|
||||||
bool PreviewReportWidgetPrivate::pageIsVisible(){
|
bool PreviewReportWidgetPrivate::pageIsVisible(){
|
||||||
QGraphicsView* view = q_ptr->ui->graphicsView;
|
QGraphicsView* view = q_ptr->ui->graphicsView;
|
||||||
|
if ( m_currentPage-1 >= m_reportPages.size() || m_currentPage <= 0 )
|
||||||
|
return false;
|
||||||
PageItemDesignIntf::Ptr page = m_reportPages.at(m_currentPage-1);
|
PageItemDesignIntf::Ptr page = m_reportPages.at(m_currentPage-1);
|
||||||
return page->mapToScene(page->rect()).boundingRect().intersects(
|
return page->mapToScene(page->rect()).boundingRect().intersects(
|
||||||
view->mapToScene(view->viewport()->geometry()).boundingRect()
|
view->mapToScene(view->viewport()->geometry()).boundingRect()
|
||||||
|
Loading…
Reference in New Issue
Block a user