Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[layouts] Fix printed pages are offset from top-left on some platforms
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+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 |
|
|