Skip to content

Commit

Permalink
Disable RenderPartialOutput Setting in printing. It is unused in prin…
Browse files Browse the repository at this point in the history
…ting, even worse it causes the creation of a background QImage, which is a memory problem in large-format printing
  • Loading branch information
mhugent committed May 22, 2018
1 parent e8e15d5 commit 31a9571
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/composer/qgscomposermap.cpp
Expand Up @@ -236,6 +236,7 @@ QgsMapSettings QgsComposerMap::mapSettings( const QgsRectangle& extent, QSizeF s
{
//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 31a9571

Please sign in to comment.