From 319a8ec48a8a901a223b60516663b0aaa80466d8 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 21 Dec 2020 16:21:42 +0200 Subject: [PATCH] Remove deprecated QPrinter methods. Missed one paperRect(). --- src/app/valentina/mainwindowsnogui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index ad47d5acb..c00960098 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -1339,7 +1339,7 @@ void MainWindowsNoGUI::PdfTiledFile(const QString &name) SetPrinterSettings(&printer, PrintType::PrintPDF); // Call IsPagesFit after setting a printer settings and check if pages is not bigger than printer's paper size - if (not isTiled && not IsPagesFit(printer.paperRect().size())) + if (not isTiled && not IsPagesFit(printer.pageLayout().paintRectPixels(printer.resolution()).size())) { qWarning()<