Skip to content
Permalink
Browse files

Merge pull request #280 from Oslandia/atlas

Fix a bug in atlas generation GUI.
  • Loading branch information
mhugent committed Oct 8, 2012
2 parents 13a6fd9 + c0e779f commit dc522e0b61dc0c95c90872b2143504a8435e523f
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 dc522e0

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