Skip to content
Permalink
Browse files

Null pointer check for the layer tree model

  • Loading branch information
rldhont committed Sep 12, 2017
1 parent 026b9b0 commit 0598be4c477c2c159ff3221719b473de4b806604
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/layertree/qgslayertreemodel.cpp
@@ -767,6 +767,9 @@ void QgsLayerTreeModel::nodeLayerWillBeUnloaded()

void QgsLayerTreeModel::layerLegendChanged()
{
if ( !mRootNode )
return;

if ( !testFlag( ShowLegend ) )
return;

0 comments on commit 0598be4

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