Skip to content
Permalink
Browse files
Merge pull request #1036 from nyalldawson/composer_render_speed
[composer] Allow render optimisations when in preview mode
  • Loading branch information
nyalldawson committed Jan 1, 2014
2 parents 12eb44e + 213b982 commit 7a034f3
Showing 1 changed file with 7 additions and 1 deletion.
@@ -202,7 +202,13 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
{
theRendererContext->setDrawEditingInformation( false );
theRendererContext->setRenderingStopped( false );
theRendererContext->setRenderingPrintComposition( true );

if ( mComposition->plotStyle() == QgsComposition::Print ||
mComposition->plotStyle() == QgsComposition::Postscript )
{
//if outputing composer, disable optimisations like layer simplification
theRendererContext->setRenderingPrintComposition( true );
}

// force vector output (no caching of marker images etc.)
theRendererContext->setForceVectorOutput( true );

0 comments on commit 7a034f3

Please sign in to comment.