Skip to content

Commit 9757116

Browse files
committed
Fix crash
1 parent d0d9bab commit 9757116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsmaprendererjob.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bool QgsMapRendererJob::prepareLabelCache() const
8282
QgsVectorLayer* vl = const_cast< QgsVectorLayer* >( qobject_cast<const QgsVectorLayer *>( ml ) );
8383
if ( vl && QgsPalLabeling::staticWillUseLayer( vl ) )
8484
labeledLayers << vl;
85-
if ( vl->labeling()->requiresAdvancedEffects( vl ) )
85+
if ( vl && vl->labeling() && vl->labeling()->requiresAdvancedEffects( vl ) )
8686
{
8787
canCache = false;
8888
break;

0 commit comments

Comments
 (0)