From 1af1283ed4a8b8b36aedc5f03b283f0337c0fe53 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 23 Oct 2015 08:27:47 +0300 Subject: [PATCH] Resolved issue #396. Layout printing is incorrect size. --HG-- branch : develop --- src/app/valentina/mainwindowsnogui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 200f14143..f449020db 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -456,7 +456,7 @@ QIcon MainWindowsNoGUI::ScenePreview(int i) const painter.setPen(QPen(Qt::black, qApp->toPixel(WidthMainLine(*pattern->GetPatternUnit())), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); painter.setBrush ( QBrush ( Qt::NoBrush ) ); - scenes.at(i)->render(&painter); + scenes.at(i)->render(&painter, r, r, Qt::IgnoreAspectRatio); painter.end(); } else @@ -731,7 +731,7 @@ QVector MainWindowsNoGUI::AllSheets() painter.setPen(QPen(Qt::black, qApp->toPixel(WidthMainLine(*pattern->GetPatternUnit())), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); painter.setBrush ( QBrush ( Qt::NoBrush ) ); - scenes.at(i)->render(&painter); + scenes.at(i)->render(&painter, r, r, Qt::IgnoreAspectRatio); painter.end(); images.append(image);