Skip to content

Commit ee4cba0

Browse files
committedAug 27, 2018
[layouts] Fix printed pages are offset from top-left on some platforms
Fixes #19566
1 parent 5ba52e3 commit ee4cba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/layout/qgslayoutexporter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,8 @@ void QgsLayoutExporter::updatePrinterPageSize( QgsLayout *layout, QPrinter &prin
11141114
QMarginsF( 0, 0, 0, 0 ) );
11151115
pageLayout.setMode( QPageLayout::FullPageMode );
11161116
printer.setPageLayout( pageLayout );
1117+
printer.setFullPage( true );
1118+
printer.setPageMargins( QMarginsF( 0, 0, 0, 0 ) );
11171119
}
11181120

11191121
QgsLayoutExporter::ExportResult QgsLayoutExporter::renderToLayeredSvg( const SvgExportSettings &settings, double width, double height, int page, QRectF bounds, const QString &filename, int svgLayerId, const QString &layerName, QDomDocument &svg, QDomNode &svgDocRoot, bool includeMetadata ) const

0 commit comments

Comments
 (0)
Please sign in to comment.