Skip to content

Commit 2752f83

Browse files
committedJan 29, 2019
Fix inconsistent use of layout render context flags
1 parent 9a723d9 commit 2752f83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/core/layout/qgslayoutexporter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
492492
( void )contextRestorer;
493493
mLayout->renderContext().setDpi( settings.dpi );
494494

495+
mLayout->renderContext().setFlags( settings.flags );
496+
495497
// If we are not printing as raster, temporarily disable advanced effects
496498
// as QPrinter does not support composition modes and can result
497499
// in items missing from the output
@@ -563,6 +565,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( QgsAbstractLayou
563565
( void )contextRestorer;
564566
iterator->layout()->renderContext().setDpi( settings.dpi );
565567

568+
iterator->layout()->renderContext().setFlags( settings.flags );
569+
566570
// If we are not printing as raster, temporarily disable advanced effects
567571
// as QPrinter does not support composition modes and can result
568572
// in items missing from the output
@@ -673,6 +677,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::print( QPrinter &printer, con
673677
( void )contextRestorer;
674678
mLayout->renderContext().setDpi( settings.dpi );
675679

680+
mLayout->renderContext().setFlags( settings.flags );
676681
// If we are not printing as raster, temporarily disable advanced effects
677682
// as QPrinter does not support composition modes and can result
678683
// in items missing from the output
@@ -732,6 +737,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::print( QgsAbstractLayoutItera
732737
( void )contextRestorer;
733738
iterator->layout()->renderContext().setDpi( settings.dpi );
734739

740+
iterator->layout()->renderContext().setFlags( settings.flags );
741+
735742
// If we are not printing as raster, temporarily disable advanced effects
736743
// as QPrinter does not support composition modes and can result
737744
// in items missing from the output
@@ -786,6 +793,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToSvg( const QString &f
786793
( void )contextRestorer;
787794
mLayout->renderContext().setDpi( settings.dpi );
788795

796+
mLayout->renderContext().setFlags( settings.flags );
789797
mLayout->renderContext().setFlag( QgsLayoutRenderContext::FlagForceVectorOutput, settings.forceVectorOutput );
790798
mLayout->renderContext().setTextRenderFormat( s.textRenderFormat );
791799

0 commit comments

Comments
 (0)
Please sign in to comment.