Skip to content

Commit

Permalink
fix bad guard
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Jun 2, 2020
1 parent 9249dfe commit 4ed5c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/mesh/qgsmeshstaticdatasetwidget.cpp
Expand Up @@ -34,7 +34,7 @@ void QgsMeshStaticDatasetWidget::setLayer( QgsMeshLayer *layer )

void QgsMeshStaticDatasetWidget::syncToLayer()
{
if ( !mLayer && !mLayer->dataProvider() )
if ( !mLayer || !mLayer->dataProvider() )
return;

mScalarDatasetGroup = mLayer->rendererSettings().activeScalarDatasetGroup();
Expand Down

0 comments on commit 4ed5c82

Please sign in to comment.