Skip to content
Permalink
Browse files

Show section label for atlas preview too

  • Loading branch information
nyalldawson committed Jan 6, 2018
1 parent 392d377 commit e9100cd9f2db97944282bbbd502a8c9f9008e0e0
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -2073,6 +2073,7 @@ void QgsLayoutDesignerDialog::atlasPreviewTriggered( bool checked )
else
{
atlas->endRender();
mView->setSectionLabel( QString() );
}
}

@@ -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()

0 comments on commit e9100cd

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