@@ -492,6 +492,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
492
492
( void )contextRestorer;
493
493
mLayout ->renderContext ().setDpi ( settings.dpi );
494
494
495
+ mLayout ->renderContext ().setFlags ( settings.flags );
496
+
495
497
// If we are not printing as raster, temporarily disable advanced effects
496
498
// as QPrinter does not support composition modes and can result
497
499
// in items missing from the output
@@ -563,6 +565,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( QgsAbstractLayou
563
565
( void )contextRestorer;
564
566
iterator->layout ()->renderContext ().setDpi ( settings.dpi );
565
567
568
+ iterator->layout ()->renderContext ().setFlags ( settings.flags );
569
+
566
570
// If we are not printing as raster, temporarily disable advanced effects
567
571
// as QPrinter does not support composition modes and can result
568
572
// in items missing from the output
@@ -673,6 +677,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::print( QPrinter &printer, con
673
677
( void )contextRestorer;
674
678
mLayout ->renderContext ().setDpi ( settings.dpi );
675
679
680
+ mLayout ->renderContext ().setFlags ( settings.flags );
676
681
// If we are not printing as raster, temporarily disable advanced effects
677
682
// as QPrinter does not support composition modes and can result
678
683
// in items missing from the output
@@ -732,6 +737,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::print( QgsAbstractLayoutItera
732
737
( void )contextRestorer;
733
738
iterator->layout ()->renderContext ().setDpi ( settings.dpi );
734
739
740
+ iterator->layout ()->renderContext ().setFlags ( settings.flags );
741
+
735
742
// If we are not printing as raster, temporarily disable advanced effects
736
743
// as QPrinter does not support composition modes and can result
737
744
// in items missing from the output
@@ -786,6 +793,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToSvg( const QString &f
786
793
( void )contextRestorer;
787
794
mLayout ->renderContext ().setDpi ( settings.dpi );
788
795
796
+ mLayout ->renderContext ().setFlags ( settings.flags );
789
797
mLayout ->renderContext ().setFlag ( QgsLayoutRenderContext::FlagForceVectorOutput, settings.forceVectorOutput );
790
798
mLayout ->renderContext ().setTextRenderFormat ( s.textRenderFormat );
791
799
0 commit comments