Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix potential crash in mesh renderer vector settings widget
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Apr 23, 2021
1 parent 3e4acec commit 47b0a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/mesh/qgsmeshrenderervectorsettingswidget.cpp
Expand Up @@ -187,7 +187,7 @@ QgsMeshRendererVectorSettings QgsMeshRendererVectorSettingsWidget::settings() co

void QgsMeshRendererVectorSettingsWidget::syncToLayer( )
{
if ( !mMeshLayer && !mMeshLayer->dataProvider() )
if ( !mMeshLayer || !mMeshLayer->dataProvider() )
return;

if ( mActiveDatasetGroup < 0 )
Expand Down

0 comments on commit 47b0a4e

Please sign in to comment.