Skip to content
Permalink
Browse files

Fix atlas actions not immediately available for map items

when toggling atlas enabled
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 37f5a3d commit a01d8daf8fc946a964ce7996303564b74cb896d2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/layout/qgslayoutatlaswidget.cpp
@@ -94,6 +94,7 @@ void QgsLayoutAtlasWidget::changeCoverageLayer( QgsMapLayer *layer )
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( layer );

mLayout->undoStack()->beginCommand( mAtlas, tr( "Change Atlas Layer" ) );
mLayout->reportContext().setLayer( vl );
if ( !vl )
{
mAtlas->setCoverageLayer( nullptr );

0 comments on commit a01d8da

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