Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Aug 7, 2018
1 parent 709973a commit 53a3425ec3ad005d74a2c6ae442d8b4c7dc4d3af
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/layout/qgslayoutexporter.cpp
@@ -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 );
}

0 comments on commit 53a3425

Please sign in to comment.
You can’t perform that action at this time.