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 7a034f395a1fac77b6e73e1f0a4ee36990b50589
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/composer/qgscomposermap.cpp
@@ -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.
You can’t perform that action at this time.