Skip to content

Commit

Permalink
backport #41362
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Apr 29, 2021
1 parent 5fc2345 commit bca1b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -63,9 +63,9 @@ QgsMeshLayer::QgsMeshLayer( const QString &meshLayerPath,
ok = setDataProvider( providerKey, providerOptions, flags );
}

setLegend( QgsMapLayerLegend::defaultMeshLegend( this ) );
if ( ok )
{
setLegend( QgsMapLayerLegend::defaultMeshLegend( this ) );
setDefaultRendererSettings( mDatasetGroupStore->datasetGroupIndexes() );

if ( mDataProvider )
Expand Down

0 comments on commit bca1b83

Please sign in to comment.