Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a bug in atlas generation GUI.
The 'print' and 'exportAsImages' actions were generating atlas even when not enabled
  • Loading branch information
Hugo Mercier committed Oct 8, 2012
1 parent 13a6fd9 commit c0e779f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -746,7 +746,7 @@ void QgsComposer::on_mActionPrint_triggered()
mView->setPaintingEnabled( false );

QgsAtlasComposition* atlasMap = &mComposition->atlasComposition();
if ( atlasMap == 0 )
if ( !atlasMap->enabled() )
{
mComposition->print( mPrinter );
}
Expand Down Expand Up @@ -830,7 +830,7 @@ void QgsComposer::on_mActionExportAsImage_triggered()
}

QgsAtlasComposition* atlasMap = &mComposition->atlasComposition();
if ( 0 == atlasMap )
if ( !atlasMap->enabled() )
{
QPair<QString, QString> fileNExt = QgisGui::getSaveAsImageName( this, tr( "Choose a file name to save the map image as" ) );

Expand Down

0 comments on commit c0e779f

Please sign in to comment.