Skip to content
Permalink
Browse files

Fix a bug in atlas generation GUI.

The 'print' and 'exportAsImages' actions were generating atlas even when not enabled
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Oct 8, 2012
1 parent 13a6fd9 commit c0e779f0a786251995735bf0ca5548cf4c83d1a3
Showing with 2 additions and 2 deletions.
  1. +2 −2 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<QString, QString> fileNExt = QgisGui::getSaveAsImageName( this, tr( "Choose a file name to save the map image as" ) );

0 comments on commit c0e779f

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