Skip to content

Commit

Permalink
Followup a112dfe, fix #14451
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 10, 2016
1 parent 8b34437 commit 52621b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 52621b9

Please sign in to comment.