PageDesignIntf has been fixed

This commit is contained in:
Arin Alexander 2019-03-11 23:01:32 +03:00
parent ee77ad5e5f
commit a045c4fd0c

View File

@ -291,6 +291,8 @@ void PageDesignIntf::setPageItems(QList<PageItemDesignIntf::Ptr> pages)
if (curWidth<pageItem->width()) curWidth=pageItem->width();
}
setSceneRect(QRectF(0,0,curWidth,curHeight).adjusted(-10*Const::mmFACTOR,-10*Const::mmFACTOR,10*Const::mmFACTOR,10*Const::mmFACTOR));
if (m_reportPages.count()>0)
m_currentPage = m_reportPages.at(0).data();
}