Skip to content

Commit 213b982

Browse files
committed
[composer] Only disable render optimisations by simplification when a composer is being outputed. Allows composer previews to benefit from layer simplification optimisations
1 parent 75df3f4 commit 213b982

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
@@ -199,7 +199,13 @@ void QgsComposerMap::draw( QPainter *painter, const QgsRectangle& extent, const
199199
{
200200
theRendererContext->setDrawEditingInformation( false );
201201
theRendererContext->setRenderingStopped( false );
202-
theRendererContext->setRenderingPrintComposition( true );
202+
203+
if ( mComposition->plotStyle() == QgsComposition::Print ||
204+
mComposition->plotStyle() == QgsComposition::Postscript )
205+
{
206+
//if outputing composer, disable optimisations like layer simplification
207+
theRendererContext->setRenderingPrintComposition( true );
208+
}
203209

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

0 commit comments

Comments
 (0)