Skip to content
Permalink
Browse files

Fix incorrect warning message when turning off atlas preview

  • Loading branch information
nyalldawson committed May 26, 2020
1 parent 6a4d227 commit 3b0af960dd90af15cbe32e2fd7642408031e70f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -4461,7 +4461,7 @@ void QgsLayoutDesignerDialog::atlasFeatureChanged( const QgsFeature &feature )
const QString atlasFeatureName = atlas->nameForPage( atlas->currentFeatureNumber() );
mView->setSectionLabel( atlasFeatureName );

if ( !feature.hasGeometry() || feature.geometry().isEmpty() )
if ( feature.isValid() && ( !feature.hasGeometry() || feature.geometry().isEmpty() ) )
{
// a little sanity check -- if there's any maps in this layout which are set to be atlas controlled,
// and we hit a feature with no geometry attached, then warn the user

0 comments on commit 3b0af96

Please sign in to comment.
You can’t perform that action at this time.