Skip to content

Commit dc522e0

Browse files
committed
Merge pull request #280 from Oslandia/atlas
Fix a bug in atlas generation GUI.
2 parents 13a6fd9 + c0e779f commit dc522e0

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)