Skip to content

Commit

Permalink
Disable RenderPartialOutput also in composer map preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed May 24, 2018
1 parent 31a9571 commit 519c9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposermap.cpp
Expand Up @@ -230,13 +230,13 @@ QgsMapSettings QgsComposerMap::mapSettings( const QgsRectangle& extent, QSizeF s
jobMapSettings.setCrsTransformEnabled( ms.hasCrsTransformEnabled() );
jobMapSettings.setFlags( ms.flags() );
jobMapSettings.setFlag( QgsMapSettings::DrawSelection, false );
jobMapSettings.setFlag( QgsMapSettings::RenderPartialOutput, false );

if ( mComposition->plotStyle() == QgsComposition::Print ||
mComposition->plotStyle() == QgsComposition::Postscript )
{
//if outputing composer, disable optimisations like layer simplification
jobMapSettings.setFlag( QgsMapSettings::UseRenderingOptimization, false );
jobMapSettings.setFlag( QgsMapSettings::RenderPartialOutput, false );
}

QgsExpressionContext* context = createExpressionContext();
Expand Down

0 comments on commit 519c9db

Please sign in to comment.