Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when map contains diagrams on joined layers (refs #13177)
  • Loading branch information
nyalldawson committed Aug 5, 2015
1 parent be411e1 commit 2b8b942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaprenderercustompainterjob.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2b8b942

Please sign in to comment.