Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix mesh legend
  • Loading branch information
vcloarec authored and nyalldawson committed Feb 4, 2021
1 parent a895598 commit ec6552c
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 ec6552c

Please sign in to comment.