Skip to content

Commit

Permalink
[layouts] Try to avoid incorrect page margin handling while printing
Browse files Browse the repository at this point in the history
(cherry-picked from 53a3425)
  • Loading branch information
nyalldawson committed Aug 8, 2018
1 parent d16b5db commit 0230e4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/layout/qgslayoutexporter.cpp
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 0230e4a

Please sign in to comment.