@@ -3963,6 +3963,8 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
3963
3963
// Image size
3964
3964
if ( mLayout )
3965
3965
{
3966
+ settings.flags = mLayout ->renderContext ().flags ();
3967
+
3966
3968
maxPageSize = mLayout ->pageCollection ()->maximumPageSize ();
3967
3969
hasUniformPageSizes = mLayout ->pageCollection ()->hasUniformPageSizes ();
3968
3970
dpi = mLayout ->renderContext ().dpi ();
@@ -4009,9 +4011,11 @@ bool QgsLayoutDesignerDialog::getRasterExportSettings( QgsLayoutExporter::ImageE
4009
4011
settings.imageSize = imageSize;
4010
4012
}
4011
4013
settings.generateWorldFile = imageDlg.generateWorldFile ();
4012
- settings.flags = QgsLayoutRenderContext::FlagUseAdvancedEffects;
4014
+ settings.flags | = QgsLayoutRenderContext::FlagUseAdvancedEffects;
4013
4015
if ( imageDlg.antialiasing () )
4014
4016
settings.flags |= QgsLayoutRenderContext::FlagAntialiasing;
4017
+ else
4018
+ settings.flags &= ~QgsLayoutRenderContext::FlagAntialiasing;
4015
4019
4016
4020
return true ;
4017
4021
}
@@ -4036,6 +4040,8 @@ bool QgsLayoutDesignerDialog::getSvgExportSettings( QgsLayoutExporter::SvgExport
4036
4040
bool disableRasterTiles = false ;
4037
4041
if ( mLayout )
4038
4042
{
4043
+ settings.flags = mLayout ->renderContext ().flags ();
4044
+
4039
4045
forceVector = mLayout ->customProperty ( QStringLiteral ( " forceVector" ), false ).toBool ();
4040
4046
layersAsGroup = mLayout ->customProperty ( QStringLiteral ( " svgGroupLayers" ), false ).toBool ();
4041
4047
cropToContents = mLayout ->customProperty ( QStringLiteral ( " svgCropToContents" ), false ).toBool ();
@@ -4124,6 +4130,7 @@ bool QgsLayoutDesignerDialog::getPdfExportSettings( QgsLayoutExporter::PdfExport
4124
4130
bool disableRasterTiles = false ;
4125
4131
if ( mLayout )
4126
4132
{
4133
+ settings.flags = mLayout ->renderContext ().flags ();
4127
4134
forceVector = mLayout ->customProperty ( QStringLiteral ( " forceVector" ), 0 ).toBool ();
4128
4135
includeMetadata = mLayout ->customProperty ( QStringLiteral ( " pdfIncludeMetadata" ), 1 ).toBool ();
4129
4136
disableRasterTiles = mLayout ->customProperty ( QStringLiteral ( " pdfDisableRasterTiles" ), 0 ).toBool ();
0 commit comments