mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[layouts] Try to avoid incorrect page margin handling while printing
This commit is contained in:
parent
709973a233
commit
53a3425ec3
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user