Skip to content

Commit e9100cd

Browse files
committed
Show section label for atlas preview too
1 parent 392d377 commit e9100cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/layout/qgslayoutdesignerdialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,7 @@ void QgsLayoutDesignerDialog::atlasPreviewTriggered( bool checked )
20732073
else
20742074
{
20752075
atlas->endRender();
2076+
mView->setSectionLabel( QString() );
20762077
}
20772078
}
20782079

@@ -3827,6 +3828,8 @@ void QgsLayoutDesignerDialog::atlasFeatureChanged( const QgsFeature &feature )
38273828
mapCanvas->expressionContextScope().addVariable( QgsExpressionContextScope::StaticVariable( QStringLiteral( "atlas_geometry" ), QVariant::fromValue( feature.geometry() ), true ) );
38283829
mapCanvas->stopRendering();
38293830
mapCanvas->refreshAllLayers();
3831+
3832+
mView->setSectionLabel( atlas->nameForPage( atlas->currentFeatureNumber() ) );
38303833
}
38313834

38323835
void QgsLayoutDesignerDialog::loadAtlasPredefinedScalesFromProject()

0 commit comments

Comments
 (0)