Skip to content

Commit

Permalink
[layouts] Fix printed pages are offset from top-left on some platforms
Browse files Browse the repository at this point in the history
Fixes #19566
  • Loading branch information
nyalldawson committed Aug 27, 2018
1 parent 5ba52e3 commit ee4cba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutexporter.cpp
Expand Up @@ -1114,6 +1114,8 @@ void QgsLayoutExporter::updatePrinterPageSize( QgsLayout *layout, QPrinter &prin
QMarginsF( 0, 0, 0, 0 ) );
pageLayout.setMode( QPageLayout::FullPageMode );
printer.setPageLayout( pageLayout );
printer.setFullPage( true );
printer.setPageMargins( QMarginsF( 0, 0, 0, 0 ) );
}

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
Expand Down

0 comments on commit ee4cba0

Please sign in to comment.