Skip to content
Permalink
Browse files

[layouts] Fix hidden coverage atlas setting is ignored when exporting…

… atlas to images

Fixes #21243

(cherry picked from commit eceaea8)
  • Loading branch information
nyalldawson committed Feb 20, 2019
1 parent 9500d39 commit 86b0bd8c5427fba36ed5619802ee1ff043909e3d
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -3909,6 +3909,8 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
// Image size
if ( mLayout )
{
settings.flags = mLayout->renderContext().flags();

maxPageSize = mLayout->pageCollection()->maximumPageSize();
hasUniformPageSizes = mLayout->pageCollection()->hasUniformPageSizes();
dpi = mLayout->renderContext().dpi();
@@ -3955,9 +3957,11 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
settings.imageSize = imageSize;
}
settings.generateWorldFile = imageDlg.generateWorldFile();
settings.flags = QgsLayoutRenderContext::FlagUseAdvancedEffects;
settings.flags |= QgsLayoutRenderContext::FlagUseAdvancedEffects;
if ( imageDlg.antialiasing() )
settings.flags |= QgsLayoutRenderContext::FlagAntialiasing;
else
settings.flags &= ~QgsLayoutRenderContext::FlagAntialiasing;

return true;
}
@@ -3981,6 +3985,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
bool includeMetadata = true;
if ( mLayout )
{
settings.flags = mLayout->renderContext().flags();

forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), false ).toBool();
layersAsGroup = mLayout->customProperty( QStringLiteral( "svgGroupLayers" ), false ).toBool();
cropToContents = mLayout->customProperty( QStringLiteral( "svgCropToContents" ), false ).toBool();
@@ -4059,6 +4065,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
bool includeMetadata = true;
if ( mLayout )
{
settings.flags = mLayout->renderContext().flags();
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), 0 ).toBool();
includeMetadata = mLayout->customProperty( QStringLiteral( "pdfIncludeMetadata" ), 1 ).toBool();
const int prevLayoutSettingLabelsAsOutlines = mLayout->customProperty( QStringLiteral( "pdfTextFormat" ), -1 ).toInt();

0 comments on commit 86b0bd8

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