Skip to content

Commit 0230e4a

Browse files
committedAug 8, 2018
[layouts] Try to avoid incorrect page margin handling while printing
(cherry-picked from 53a3425)
1 parent d16b5db commit 0230e4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/layout/qgslayoutexporter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ void QgsLayoutExporter::updatePrinterPageSize( QgsLayout *layout, QPrinter &prin
11121112
QPageLayout pageLayout( QPageSize( pageSizeMM.toQSizeF(), QPageSize::Millimeter ),
11131113
QPageLayout::Portrait,
11141114
QMarginsF( 0, 0, 0, 0 ) );
1115+
pageLayout.setMode( QPageLayout::FullPageMode );
11151116
printer.setPageLayout( pageLayout );
11161117
}
11171118

0 commit comments

Comments
 (0)
Please sign in to comment.