From c36f19aba9434c00358c7799eb6e128e7b1778c6 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 2 Jun 2016 21:00:23 +0300 Subject: [PATCH] According to documentation "The origin of the QPainter's coordinate system will coincide with the top-left corner of the page rectangle, and painting operations will be clipped to the bounds of the drawable part of the page". --HG-- branch : develop --- src/app/valentina/mainwindowsnogui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index d810b50d5..b8d0127e2 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -341,9 +341,6 @@ void MainWindowsNoGUI::PrintPages(QPrinter *printer) copyCount = printer->copyCount(); } - qreal left, top, right, bottom; - printer->getPageMargins(&left, &top, &right, &bottom, QPrinter::Millimeter); - for (int i = 0; i < copyCount; ++i) { for (int j = 0; j < numPages; ++j) @@ -365,7 +362,7 @@ void MainWindowsNoGUI::PrintPages(QPrinter *printer) { index = lastPage - j; } - painter.drawImage(QPointF(left, top), poster.at(index)); + painter.drawImage(QPointF(), poster.at(index)); } }