Skip to content

Commit eceaea8

Browse files
committed
[layouts] Fix hidden coverage atlas setting is ignored when exporting atlas to images
Fixes #21243
1 parent 2609d9f commit eceaea8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/app/layout/qgslayoutdesignerdialog.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -3963,6 +3963,8 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
39633963
// Image size
39643964
if ( mLayout )
39653965
{
3966+
settings.flags = mLayout->renderContext().flags();
3967+
39663968
maxPageSize = mLayout->pageCollection()->maximumPageSize();
39673969
hasUniformPageSizes = mLayout->pageCollection()->hasUniformPageSizes();
39683970
dpi = mLayout->renderContext().dpi();
@@ -4009,9 +4011,11 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
40094011
settings.imageSize = imageSize;
40104012
}
40114013
settings.generateWorldFile = imageDlg.generateWorldFile();
4012-
settings.flags = QgsLayoutRenderContext::FlagUseAdvancedEffects;
4014+
settings.flags |= QgsLayoutRenderContext::FlagUseAdvancedEffects;
40134015
if ( imageDlg.antialiasing() )
40144016
settings.flags |= QgsLayoutRenderContext::FlagAntialiasing;
4017+
else
4018+
settings.flags &= ~QgsLayoutRenderContext::FlagAntialiasing;
40154019

40164020
return true;
40174021
}
@@ -4036,6 +4040,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
40364040
bool disableRasterTiles = false;
40374041
if ( mLayout )
40384042
{
4043+
settings.flags = mLayout->renderContext().flags();
4044+
40394045
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), false ).toBool();
40404046
layersAsGroup = mLayout->customProperty( QStringLiteral( "svgGroupLayers" ), false ).toBool();
40414047
cropToContents = mLayout->customProperty( QStringLiteral( "svgCropToContents" ), false ).toBool();
@@ -4124,6 +4130,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
41244130
bool disableRasterTiles = false;
41254131
if ( mLayout )
41264132
{
4133+
settings.flags = mLayout->renderContext().flags();
41274134
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), 0 ).toBool();
41284135
includeMetadata = mLayout->customProperty( QStringLiteral( "pdfIncludeMetadata" ), 1 ).toBool();
41294136
disableRasterTiles = mLayout->customProperty( QStringLiteral( "pdfDisableRasterTiles" ), 0 ).toBool();

0 commit comments

Comments
 (0)