Skip to content
Permalink
Browse files

Followup a112dfe, fix #14451

  • Loading branch information
nyalldawson committed Mar 10, 2016
1 parent 8b34437 commit 52621b9a553022b0a86b05cb9b5a4684d880afdc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodel.cpp
@@ -943,7 +943,7 @@ void QgsLayerTreeModel::refreshScaleBasedLayers( const QModelIndex& idx )
if ( node->nodeType() == QgsLayerTreeNode::NodeLayer )
{
const QgsMapLayer* layer = QgsLayerTree::toLayer( node )->layer();
if ( layer->hasScaleBasedVisibility() )
if ( layer && layer->hasScaleBasedVisibility() )
{
emit dataChanged( idx, idx );
}

0 comments on commit 52621b9

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