[layouts] Try to avoid incorrect page margin handling while printing

This commit is contained in:
Nyall Dawson 2018-08-07 12:32:35 +10:00
parent 709973a233
commit 53a3425ec3

View File

@ -1112,6 +1112,7 @@ void QgsLayoutExporter::updatePrinterPageSize( QgsLayout *layout, QPrinter &prin
QPageLayout pageLayout( QPageSize( pageSizeMM.toQSizeF(), QPageSize::Millimeter ),
QPageLayout::Portrait,
QMarginsF( 0, 0, 0, 0 ) );
pageLayout.setMode( QPageLayout::FullPageMode );
printer.setPageLayout( pageLayout );
}