Skip to content
Permalink
Browse files

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

(cherry-picked from 53a3425)
  • Loading branch information
nyalldawson committed Aug 8, 2018
1 parent d16b5db commit 0230e4a8dc5496c1ddd42f2a169bd367082b142a
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 0230e4a

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