From 00abe9371bc9c03f31e6936ad485e3e7677a61f4 Mon Sep 17 00:00:00 2001 From: Rodrigo Torres Date: Tue, 24 Aug 2021 04:48:18 -0300 Subject: [PATCH] Fix compilation on Qt 6.0 --- limereport/lrreportengine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index 2b808c4..ba0e8d7 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -1906,8 +1906,7 @@ bool PrintProcessor::printPage(PageItemDesignIntf::Ptr page) QRectF printerPageRect = m_printer->pageRect(QPrinter::Millimeter); printerPageRect = QRectF(0,0,(printerPageRect.size().width() + rightMargin + leftMargin) * page->unitFactor(), (printerPageRect.size().height() + bottomMargin + topMargin) * page->unitFactor()); - - if (page->printBehavior() == PageItemDesignIntf::Split && m_printer->pageLayout().pageSize() != (QPageSize::PageSizeId)page->pageSize() && + if (page->printBehavior() == PageItemDesignIntf::Split && m_printer->pageLayout().pageSize() != QPageSize((QPageSize::PageSizeId)page->pageSize()) && printerPageRect.width() < page->geometry().width()) { qreal pageWidth = page->geometry().width();