Skip to content

Commit 7a034f3

Browse files
committed
Merge pull request #1036 from nyalldawson/composer_render_speed
[composer] Allow render optimisations when in preview mode
2 parents 12eb44e + 213b982 commit 7a034f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/core/composer/qgscomposermap.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
202202
{
203203
theRendererContext->setDrawEditingInformation( false );
204204
theRendererContext->setRenderingStopped( false );
205-
theRendererContext->setRenderingPrintComposition( true );
205+
206+
if ( mComposition->plotStyle() == QgsComposition::Print ||
207+
mComposition->plotStyle() == QgsComposition::Postscript )
208+
{
209+
//if outputing composer, disable optimisations like layer simplification
210+
theRendererContext->setRenderingPrintComposition( true );
211+
}
206212

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

0 commit comments

Comments
 (0)