Skip to content

Commit c0e779f

Browse files
author
Hugo Mercier
committedOct 8, 2012
Fix a bug in atlas generation GUI.
The 'print' and 'exportAsImages' actions were generating atlas even when not enabled
1 parent 13a6fd9 commit c0e779f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ void QgsComposer::on_mActionPrint_triggered()
746746
mView->setPaintingEnabled( false );
747747

748748
QgsAtlasComposition* atlasMap = &mComposition->atlasComposition();
749-
if ( atlasMap == 0 )
749+
if ( !atlasMap->enabled() )
750750
{
751751
mComposition->print( mPrinter );
752752
}
@@ -830,7 +830,7 @@ void QgsComposer::on_mActionExportAsImage_triggered()
830830
}
831831

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

0 commit comments

Comments
 (0)
Please sign in to comment.