Skip to content

Commit

Permalink
Fix atlas actions not immediately available for map items
Browse files Browse the repository at this point in the history
when toggling atlas enabled
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 37f5a3d commit a01d8da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/layout/qgslayoutatlaswidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit a01d8da

Please sign in to comment.