mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 20:31:04 +03:00
Fix compilation on Qt 6.0
This commit is contained in:
parent
d704b495dc
commit
00abe9371b
@ -1906,8 +1906,7 @@ bool PrintProcessor::printPage(PageItemDesignIntf::Ptr page)
|
|||||||
QRectF printerPageRect = m_printer->pageRect(QPrinter::Millimeter);
|
QRectF printerPageRect = m_printer->pageRect(QPrinter::Millimeter);
|
||||||
printerPageRect = QRectF(0,0,(printerPageRect.size().width() + rightMargin + leftMargin) * page->unitFactor(),
|
printerPageRect = QRectF(0,0,(printerPageRect.size().width() + rightMargin + leftMargin) * page->unitFactor(),
|
||||||
(printerPageRect.size().height() + bottomMargin + topMargin) * page->unitFactor());
|
(printerPageRect.size().height() + bottomMargin + topMargin) * page->unitFactor());
|
||||||
|
if (page->printBehavior() == PageItemDesignIntf::Split && m_printer->pageLayout().pageSize() != QPageSize((QPageSize::PageSizeId)page->pageSize()) &&
|
||||||
if (page->printBehavior() == PageItemDesignIntf::Split && m_printer->pageLayout().pageSize() != (QPageSize::PageSizeId)page->pageSize() &&
|
|
||||||
printerPageRect.width() < page->geometry().width())
|
printerPageRect.width() < page->geometry().width())
|
||||||
{
|
{
|
||||||
qreal pageWidth = page->geometry().width();
|
qreal pageWidth = page->geometry().width();
|
||||||
|
Loading…
Reference in New Issue
Block a user