Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[layouts] Fix hidden coverage atlas setting is ignored when exporting…
… atlas to images

Fixes #21243
  • Loading branch information
nyalldawson committed Feb 20, 2019
1 parent 2609d9f commit eceaea8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -3963,6 +3963,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();
Expand Down Expand Up @@ -4009,9 +4011,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;
}
Expand All @@ -4036,6 +4040,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
bool disableRasterTiles = false;
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();
Expand Down Expand Up @@ -4124,6 +4130,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
bool disableRasterTiles = false;
if ( mLayout )
{
settings.flags = mLayout->renderContext().flags();
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), 0 ).toBool();
includeMetadata = mLayout->customProperty( QStringLiteral( "pdfIncludeMetadata" ), 1 ).toBool();
disableRasterTiles = mLayout->customProperty( QStringLiteral( "pdfDisableRasterTiles" ), 0 ).toBool();
Expand Down

0 comments on commit eceaea8

Please sign in to comment.