Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent d0d9bab commit 9757116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaprendererjob.cpp
Expand Up @@ -82,7 +82,7 @@ bool QgsMapRendererJob::prepareLabelCache() const
QgsVectorLayer* vl = const_cast< QgsVectorLayer* >( qobject_cast<const QgsVectorLayer *>( ml ) );
if ( vl && QgsPalLabeling::staticWillUseLayer( vl ) )
labeledLayers << vl;
if ( vl->labeling()->requiresAdvancedEffects( vl ) )
if ( vl && vl->labeling() && vl->labeling()->requiresAdvancedEffects( vl ) )
{
canCache = false;
break;
Expand Down

0 comments on commit 9757116

Please sign in to comment.