Skip to content
Permalink
Browse files

Fix crash when map contains diagrams on joined layers (refs #13177)

  • Loading branch information
nyalldawson committed Aug 5, 2015
1 parent be411e1 commit 2b8b94274098185a41114ed1923099ea72452802
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaprenderercustompainterjob.cpp
@@ -342,7 +342,7 @@ bool QgsMapRendererJob::needTemporaryImage( QgsMapLayer* ml )
if ( ml->type() == QgsMapLayer::VectorLayer )
{
QgsVectorLayer* vl = qobject_cast<QgsVectorLayer *>( ml );
if ( vl->rendererV2()->forceRasterRender() )
if ( vl->rendererV2() && vl->rendererV2()->forceRasterRender() )
{
//raster rendering is forced for this layer
return true;

0 comments on commit 2b8b942

Please sign in to comment.
You can’t perform that action at this time.