Skip to content

Commit

Permalink
Show section label for atlas preview too
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 6, 2018
1 parent 392d377 commit e9100cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -2073,6 +2073,7 @@ void QgsLayoutDesignerDialog::atlasPreviewTriggered( bool checked )
else
{
atlas->endRender();
mView->setSectionLabel( QString() );
}
}

Expand Down Expand Up @@ -3827,6 +3828,8 @@ void QgsLayoutDesignerDialog::atlasFeatureChanged( const QgsFeature &feature )
mapCanvas->expressionContextScope().addVariable( QgsExpressionContextScope::StaticVariable( QStringLiteral( "atlas_geometry" ), QVariant::fromValue( feature.geometry() ), true ) );
mapCanvas->stopRendering();
mapCanvas->refreshAllLayers();

mView->setSectionLabel( atlas->nameForPage( atlas->currentFeatureNumber() ) );
}

void QgsLayoutDesignerDialog::loadAtlasPredefinedScalesFromProject()
Expand Down

0 comments on commit e9100cd

Please sign in to comment.