Skip to content
Permalink
Browse files

[layouts] Fix printed pages are offset from top-left on some platforms

Fixes #19566
  • Loading branch information
nyalldawson committed Aug 27, 2018
1 parent 5ba52e3 commit ee4cba06e81a9a5771a70bb3886c95ed54b53e14
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/layout/qgslayoutexporter.cpp
@@ -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

0 comments on commit ee4cba0

Please sign in to comment.
You can’t perform that action at this time.