From c0e779f0a786251995735bf0ca5548cf4c83d1a3 Mon Sep 17 00:00:00 2001 From: Hugo Mercier Date: Mon, 8 Oct 2012 17:08:21 +0200 Subject: [PATCH] Fix a bug in atlas generation GUI. The 'print' and 'exportAsImages' actions were generating atlas even when not enabled --- src/app/composer/qgscomposer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/composer/qgscomposer.cpp b/src/app/composer/qgscomposer.cpp index 03b332a11146..ed594cba3b3b 100644 --- a/src/app/composer/qgscomposer.cpp +++ b/src/app/composer/qgscomposer.cpp @@ -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 ); } @@ -830,7 +830,7 @@ void QgsComposer::on_mActionExportAsImage_triggered() } QgsAtlasComposition* atlasMap = &mComposition->atlasComposition(); - if ( 0 == atlasMap ) + if ( !atlasMap->enabled() ) { QPair fileNExt = QgisGui::getSaveAsImageName( this, tr( "Choose a file name to save the map image as" ) );