Skip to content

Commit 86b0bd8

Browse files
committedFeb 20, 2019
[layouts] Fix hidden coverage atlas setting is ignored when exporting atlas to images
Fixes #21243 (cherry picked from commit eceaea8)
1 parent 9500d39 commit 86b0bd8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎src/app/layout/qgslayoutdesignerdialog.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3909,6 +3909,8 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
39093909
// Image size
39103910
if ( mLayout )
39113911
{
3912+
settings.flags = mLayout->renderContext().flags();
3913+
39123914
maxPageSize = mLayout->pageCollection()->maximumPageSize();
39133915
hasUniformPageSizes = mLayout->pageCollection()->hasUniformPageSizes();
39143916
dpi = mLayout->renderContext().dpi();
@@ -3955,9 +3957,11 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
39553957
settings.imageSize = imageSize;
39563958
}
39573959
settings.generateWorldFile = imageDlg.generateWorldFile();
3958-
settings.flags = QgsLayoutRenderContext::FlagUseAdvancedEffects;
3960+
settings.flags |= QgsLayoutRenderContext::FlagUseAdvancedEffects;
39593961
if ( imageDlg.antialiasing() )
39603962
settings.flags |= QgsLayoutRenderContext::FlagAntialiasing;
3963+
else
3964+
settings.flags &= ~QgsLayoutRenderContext::FlagAntialiasing;
39613965

39623966
return true;
39633967
}
@@ -3981,6 +3985,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
39813985
bool includeMetadata = true;
39823986
if ( mLayout )
39833987
{
3988+
settings.flags = mLayout->renderContext().flags();
3989+
39843990
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), false ).toBool();
39853991
layersAsGroup = mLayout->customProperty( QStringLiteral( "svgGroupLayers" ), false ).toBool();
39863992
cropToContents = mLayout->customProperty( QStringLiteral( "svgCropToContents" ), false ).toBool();
@@ -4059,6 +4065,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
40594065
bool includeMetadata = true;
40604066
if ( mLayout )
40614067
{
4068+
settings.flags = mLayout->renderContext().flags();
40624069
forceVector = mLayout->customProperty( QStringLiteral( "forceVector" ), 0 ).toBool();
40634070
includeMetadata = mLayout->customProperty( QStringLiteral( "pdfIncludeMetadata" ), 1 ).toBool();
40644071
const int prevLayoutSettingLabelsAsOutlines = mLayout->customProperty( QStringLiteral( "pdfTextFormat" ), -1 ).toInt();

0 commit comments

Comments
 (0)
Please sign in to comment.