@@ -3909,6 +3909,8 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
3909
3909
// Image size
3910
3910
if ( mLayout )
3911
3911
{
3912
+ settings.flags = mLayout ->renderContext ().flags ();
3913
+
3912
3914
maxPageSize = mLayout ->pageCollection ()->maximumPageSize ();
3913
3915
hasUniformPageSizes = mLayout ->pageCollection ()->hasUniformPageSizes ();
3914
3916
dpi = mLayout ->renderContext ().dpi ();
@@ -3955,9 +3957,11 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
3955
3957
settings.imageSize = imageSize;
3956
3958
}
3957
3959
settings.generateWorldFile = imageDlg.generateWorldFile ();
3958
- settings.flags = QgsLayoutRenderContext::FlagUseAdvancedEffects;
3960
+ settings.flags | = QgsLayoutRenderContext::FlagUseAdvancedEffects;
3959
3961
if ( imageDlg.antialiasing () )
3960
3962
settings.flags |= QgsLayoutRenderContext::FlagAntialiasing;
3963
+ else
3964
+ settings.flags &= ~QgsLayoutRenderContext::FlagAntialiasing;
3961
3965
3962
3966
return true ;
3963
3967
}
@@ -3981,6 +3985,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
3981
3985
bool includeMetadata = true ;
3982
3986
if ( mLayout )
3983
3987
{
3988
+ settings.flags = mLayout ->renderContext ().flags ();
3989
+
3984
3990
forceVector = mLayout ->customProperty ( QStringLiteral ( " forceVector" ), false ).toBool ();
3985
3991
layersAsGroup = mLayout ->customProperty ( QStringLiteral ( " svgGroupLayers" ), false ).toBool ();
3986
3992
cropToContents = mLayout ->customProperty ( QStringLiteral ( " svgCropToContents" ), false ).toBool ();
@@ -4059,6 +4065,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
4059
4065
bool includeMetadata = true ;
4060
4066
if ( mLayout )
4061
4067
{
4068
+ settings.flags = mLayout ->renderContext ().flags ();
4062
4069
forceVector = mLayout ->customProperty ( QStringLiteral ( " forceVector" ), 0 ).toBool ();
4063
4070
includeMetadata = mLayout ->customProperty ( QStringLiteral ( " pdfIncludeMetadata" ), 1 ).toBool ();
4064
4071
const int prevLayoutSettingLabelsAsOutlines = mLayout ->customProperty ( QStringLiteral ( " pdfTextFormat" ), -1 ).toInt ();
0 commit comments